public class StompTransportFilter extends TransportFilter implements StompTransport
next, transportListener| Constructor and Description |
|---|
StompTransportFilter(Transport next,
WireFormat wireFormat,
BrokerContext brokerContext) |
| Modifier and Type | Method and Description |
|---|---|
long |
getConnectAttemptTimeout() |
String |
getDefaultHeartBeat() |
float |
getHbGracePeriodMultiplier()
Returns the currently configured Read check grace period multiplier.
|
StompInactivityMonitor |
getInactivityMonitor() |
int |
getMaxDataLength() |
long |
getMaxFrameSize() |
StompWireFormat |
getWireFormat()
Retrieves the WireFormat instance associated with this Transport instance.
|
boolean |
isTrace() |
void |
onCommand(Object command)
called to process a command
|
void |
oneway(Object o)
A one way asynchronous send
|
void |
sendToActiveMQ(Command command) |
void |
sendToStomp(StompFrame command) |
void |
setConnectAttemptTimeout(long timeout) |
void |
setDefaultHeartBeat(String defaultHeartBeat) |
void |
setHbGracePeriodMultiplier(float hbGracePeriodMultiplier)
Sets the read check grace period multiplier.
|
void |
setInactivityMonitor(StompInactivityMonitor monitor) |
void |
setMaxDataLength(int maxDataLength)
Sets the maximum number of bytes that the data portion of a STOMP frame is allowed to
be, any incoming STOMP frame with a data section larger than this value will receive
an error response.
|
void |
setMaxFrameSize(int maxFrameSize) |
void |
setTrace(boolean trace) |
void |
start() |
asyncRequest, getNext, getPeerCertificates, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, onException, reconnect, request, request, setPeerCertificates, setTransportListener, stop, toString, transportInterupted, transportResumed, updateURIsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonExceptionpublic StompTransportFilter(Transport next, WireFormat wireFormat, BrokerContext brokerContext)
public void start() throws Exception
start in interface Servicestart in class TransportFilterExceptionService.start()public void oneway(Object o) throws IOException
Transportoneway in interface Transportoneway in class TransportFilterIOExceptionpublic void onCommand(Object command)
TransportListeneronCommand in interface TransportListeneronCommand in class TransportFilterpublic void sendToActiveMQ(Command command)
sendToActiveMQ in interface StompTransportpublic void sendToStomp(StompFrame command) throws IOException
sendToStomp in interface StompTransportIOExceptionpublic boolean isTrace()
public void setTrace(boolean trace)
public StompInactivityMonitor getInactivityMonitor()
getInactivityMonitor in interface StompTransportpublic void setInactivityMonitor(StompInactivityMonitor monitor)
public StompWireFormat getWireFormat()
TransportgetWireFormat in interface StompTransportgetWireFormat in interface TransportgetWireFormat in class TransportFilterpublic String getDefaultHeartBeat()
public void setDefaultHeartBeat(String defaultHeartBeat)
public float getHbGracePeriodMultiplier()
public void setHbGracePeriodMultiplier(float hbGracePeriodMultiplier)
hbGracePeriodMultiplier - the hbGracePeriodMultiplier to setpublic void setMaxDataLength(int maxDataLength)
maxDataLength - size in bytes of the maximum data portion of a STOMP frame.public int getMaxDataLength()
public void setMaxFrameSize(int maxFrameSize)
public long getMaxFrameSize()
public long getConnectAttemptTimeout()
public void setConnectAttemptTimeout(long timeout)
Copyright © 2005–2017 The Apache Software Foundation. All rights reserved.