public class MQTTTransportFilter extends TransportFilter implements MQTTTransport
next, transportListener| Constructor and Description |
|---|
MQTTTransportFilter(Transport next,
org.apache.activemq.wireformat.WireFormat wireFormat,
BrokerContext brokerContext) |
| Modifier and Type | Method and Description |
|---|---|
int |
getActiveMQSubscriptionPrefetch() |
long |
getDefaultKeepAlive() |
MQTTInactivityMonitor |
getInactivityMonitor() |
X509Certificate[] |
getPeerCertificates() |
MQTTWireFormat |
getWireFormat() |
void |
handleException(IOException e) |
boolean |
isTrace() |
void |
onCommand(Object command) |
void |
oneway(Object o) |
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, onException, reconnect, request, request, setTransportListener, start, toString, transportInterupted, transportResumed, updateURIsclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitonExceptionpublic MQTTTransportFilter(Transport next, org.apache.activemq.wireformat.WireFormat wireFormat, BrokerContext brokerContext)
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 handleException(IOException e)
public 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.