public class MQTTTransportFilter extends TransportFilter implements MQTTTransport
next, transportListener| Constructor and Description |
|---|
MQTTTransportFilter(Transport next,
org.apache.activemq.wireformat.WireFormat wireFormat,
BrokerService brokerService) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveMQSubscriptionPrefetch() |
long |
getDefaultKeepAlive() |
MQTTInactivityMonitor |
getInactivityMonitor() |
X509Certificate[] |
getPeerCertificates() |
MQTTWireFormat |
getWireFormat() |
boolean |
isTrace() |
void |
onCommand(Object command) |
void |
oneway(Object o) |
void |
onException(IOException error) |
void |
sendToActiveMQ(org.apache.activemq.command.Command command) |
void |
sendToMQTT(org.fusesource.mqtt.codec.MQTTFrame command) |
void |
setActiveMQSubscriptionPrefetch(int activeMQSubscriptionPrefetch)
set the default prefetch size when mapping the MQTT subscription to an ActiveMQ one
The default = 1
|
void |
setDefaultKeepAlive(long defaultHeartBeat) |
void |
setInactivityMonitor(MQTTInactivityMonitor monitor) |
void |
setTrace(boolean trace) |
void |
stop() |
asyncRequest, getNext, getReceiveCounter, getRemoteAddress, getTransportListener, isConnected, isDisposed, isFaultTolerant, isReconnectSupported, isUpdateURIsSupported, narrow, reconnect, request, request, setTransportListener, start, toString, transportInterupted, transportResumed, updateURIspublic MQTTTransportFilter(Transport next, org.apache.activemq.wireformat.WireFormat wireFormat, BrokerService brokerService)
public void oneway(Object o) throws IOException
oneway in interface Transportoneway in class TransportFilterIOExceptionpublic void onCommand(Object command)
onCommand in interface TransportListeneronCommand in class TransportFilterpublic void sendToActiveMQ(org.apache.activemq.command.Command command)
sendToActiveMQ in interface MQTTTransportpublic void sendToMQTT(org.fusesource.mqtt.codec.MQTTFrame command)
throws IOException
sendToMQTT in interface MQTTTransportIOExceptionpublic void stop()
throws Exception
stop in interface org.apache.activemq.Servicestop in interface MQTTTransportstop in class TransportFilterExceptionpublic X509Certificate[] getPeerCertificates()
getPeerCertificates in interface MQTTTransportpublic boolean isTrace()
public void setTrace(boolean trace)
public MQTTInactivityMonitor getInactivityMonitor()
getInactivityMonitor in interface MQTTTransportpublic void setInactivityMonitor(MQTTInactivityMonitor monitor)
public MQTTWireFormat getWireFormat()
getWireFormat in interface MQTTTransportpublic void onException(IOException error)
onException in interface MQTTTransportonException in interface TransportListeneronException in class TransportFilterpublic long getDefaultKeepAlive()
public void setDefaultKeepAlive(long defaultHeartBeat)
public int getActiveMQSubscriptionPrefetch()
public void setActiveMQSubscriptionPrefetch(int activeMQSubscriptionPrefetch)
activeMQSubscriptionPrefetch - set the prefetch for the corresponding ActiveMQ subscriptionCopyright © 2005-2014 The Apache Software Foundation. All Rights Reserved.