public interface ImaConnectionListener
| Modifier and Type | Field and Description |
|---|---|
static String |
COPYRIGHT |
| Modifier and Type | Method and Description |
|---|---|
void |
onClose(int rc,
String reason)
Called when the connection is closing.
|
void |
onComplete(Object obj,
int rc,
String message)
Called when an asynchronous action completes.
|
void |
onConnected(int rc,
String reason)
Called when the connection request completes.
|
int |
onData(byte[] data,
int offset,
int length)
Called when data is available on a connection.
|
void |
onGetMessage(Object correlate,
int rc,
ImaMessage message)
Called when an asynchronous get retained message action completes.
|
void |
onHttpData(String op,
String path,
String query,
String content_type,
byte[] data)
Called when data is received on an HTTP connection.
|
boolean |
onLivenessCheck()
Called when no data was received on the connection during checkAlive timeout.
|
void |
onMessage(ImaSubscription sub,
ImaMessage msg)
Called when a message from MessageSight is received for a connection.
|
static final String COPYRIGHT
void onClose(int rc,
String reason)
rc - A return code 0=normalreason - A human readable reason codeint onData(byte[] data,
int offset,
int length)
data - The available datavoid onMessage(ImaSubscription sub, ImaMessage msg)
sub - The subscription on which the message comes. This can be null.msg - The messagevoid onComplete(Object obj,
int rc,
String message)
obj - The object which is complete. For the completion of a send, the object is
the message which was sent.rc - The return code. 0=goodmessage - A human readable messagevoid onConnected(int rc,
String reason)
rc - A return code 0=normalreason - A human readable reason codeboolean onLivenessCheck()
void onHttpData(String op,
String path,
String query,
String content_type,
byte[] data)
Additional information (such as host name, headers, and cookies) is available by query from the connection.
Note: this is currently not implemented
op - The operation to perform ("GET", "PUT", or "POST")path - The path not including the alias used to route to this plug-inquery - The query section of the URI, not including the leading question markcontent_type - The content type from a PUT or POST operation. This might be NULL.data - The byte data from a PUT or POST operationvoid onGetMessage(Object correlate,
int rc,
ImaMessage message)
obj - The correlate object.rc - The return code. 0=goodmsg - The message. If the return code is not zero, this parameter
will null.Copyright © Contributors to the Eclipse Foundation 2014-2021