T
- the payload type that this consumer expectspublic abstract class MessageConsumer<T extends Serializable> extends Object
Modifier | Constructor and Description |
---|---|
protected |
MessageConsumer(Class<T> payloadType) |
Modifier and Type | Method and Description |
---|---|
abstract void |
consume(T payload)
Consumes a payload of the given type.
|
Class<T> |
getPayloadType()
Returns the type of the payload;
|
public Class<T> getPayloadType()
Class
instance never null;public abstract void consume(T payload)
payload
- a Serializable
payload.Copyright © 2008–2016 JBoss, a division of Red Hat. All rights reserved.