public class MqttProtocolHandler extends org.apache.activemq.apollo.broker.protocol.AbstractProtocolHandler
| Modifier and Type | Field and Description |
|---|---|
static org.apache.activemq.apollo.util.UnitFn1<Object> |
dead_handler |
static org.apache.activemq.apollo.util.Scala2Java.Logger |
log |
| Constructor and Description |
|---|
MqttProtocolHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
_suspend_read(String reason) |
void |
async_die(org.fusesource.mqtt.codec.MessageSupport.Message response,
String msg) |
void |
async_die(String msg) |
void |
async_die(String msg,
Throwable e) |
Broker |
broker() |
org.apache.activemq.apollo.util.UnitFn1<Object> |
connect_handler() |
MqttConnectionStatusDTO |
create_connection_status(boolean debug) |
DestinationParser |
destination_parser() |
long |
die_delay() |
<T> T |
die(org.fusesource.mqtt.codec.MessageSupport.Message response) |
<T> T |
die(org.fusesource.mqtt.codec.MessageSupport.Message response,
String msg) |
<T> T |
die(org.fusesource.mqtt.codec.MessageSupport.Message response,
String msg,
Throwable e) |
<T> T |
die(String msg) |
<T> T |
die(String msg,
Throwable e) |
void |
on_host_connected(VirtualHost host) |
void |
on_mqtt_connect() |
void |
on_transport_command(Object command) |
void |
on_transport_connected() |
void |
on_transport_disconnected() |
void |
on_transport_failure(IOException error) |
String |
protocol() |
org.fusesource.hawtdispatch.DispatchQueue |
queue() |
static <T> T |
received(T value) |
void |
resume_read() |
String |
session_id() |
void |
suspend_read(org.apache.activemq.apollo.util.Fn0<String> reason) |
connection_$eq, connection, defer, set_connectionpublic static final org.apache.activemq.apollo.util.Scala2Java.Logger log
public static org.apache.activemq.apollo.util.UnitFn1<Object> dead_handler
public static <T> T received(T value)
public String protocol()
public Broker broker()
public org.fusesource.hawtdispatch.DispatchQueue queue()
public DestinationParser destination_parser()
public String session_id()
public void on_transport_connected()
on_transport_connected in interface org.apache.activemq.apollo.broker.protocol.ProtocolHandleron_transport_connected in class org.apache.activemq.apollo.broker.protocol.AbstractProtocolHandlerpublic void on_transport_disconnected()
on_transport_disconnected in interface org.apache.activemq.apollo.broker.protocol.ProtocolHandleron_transport_disconnected in class org.apache.activemq.apollo.broker.protocol.AbstractProtocolHandlerpublic void on_transport_failure(IOException error)
on_transport_failure in interface org.apache.activemq.apollo.broker.protocol.ProtocolHandleron_transport_failure in class org.apache.activemq.apollo.broker.protocol.AbstractProtocolHandlerpublic void _suspend_read(String reason)
public void suspend_read(org.apache.activemq.apollo.util.Fn0<String> reason)
public void resume_read()
public long die_delay()
public void async_die(String msg)
public void async_die(org.fusesource.mqtt.codec.MessageSupport.Message response,
String msg)
public <T> T die(String msg)
public <T> T die(org.fusesource.mqtt.codec.MessageSupport.Message response,
String msg)
public <T> T die(org.fusesource.mqtt.codec.MessageSupport.Message response,
String msg,
Throwable e)
public <T> T die(org.fusesource.mqtt.codec.MessageSupport.Message response)
public void on_transport_command(Object command)
on_transport_command in interface org.apache.activemq.apollo.broker.protocol.ProtocolHandleron_transport_command in class org.apache.activemq.apollo.broker.protocol.AbstractProtocolHandlerpublic org.apache.activemq.apollo.util.UnitFn1<Object> connect_handler()
public void on_mqtt_connect()
public void on_host_connected(VirtualHost host)
public MqttConnectionStatusDTO create_connection_status(boolean debug)
create_connection_status in interface org.apache.activemq.apollo.broker.protocol.ProtocolHandlercreate_connection_status in class org.apache.activemq.apollo.broker.protocol.AbstractProtocolHandlerCopyright © 2005–2015 The Apache Software Foundation. All rights reserved.