T
- The type of message to handlepublic abstract class PojoMessageHandlerBase<T> extends Object implements WrappedMessageHandler
Modifier and Type | Field and Description |
---|---|
protected boolean |
convert |
protected int |
indexPayload |
protected int |
indexSession |
protected long |
maxMessageSize |
protected Method |
method |
protected Object[] |
params |
protected Object |
pojo |
protected Session |
session |
Constructor and Description |
---|
PojoMessageHandlerBase(Object pojo,
Method method,
Session session,
Object[] params,
int indexPayload,
boolean convert,
int indexSession,
long maxMessageSize) |
Modifier and Type | Method and Description |
---|---|
long |
getMaxMessageSize() |
MessageHandler |
getWrappedHandler()
Expose the POJO if it is a message handler so the Session is able to
match requests to remove handlers if the original handler has been
wrapped.
|
protected void |
handlePojoMethodException(Throwable t) |
protected void |
processResult(Object result) |
protected final Object pojo
protected final Method method
protected final Session session
protected final Object[] params
protected final int indexPayload
protected final boolean convert
protected final int indexSession
protected final long maxMessageSize
protected final void processResult(Object result)
public final MessageHandler getWrappedHandler()
getWrappedHandler
in interface WrappedMessageHandler
public final long getMaxMessageSize()
getMaxMessageSize
in interface WrappedMessageHandler
protected final void handlePojoMethodException(Throwable t)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.