public class Message
extends java.lang.Object
Constructor and Description |
---|
Message(long handle)
Constructor storing the pointer/address to the underlying native object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
content()
Gets the message content
|
void |
content(java.lang.String value)
Sets the message content
|
void |
dropMessageEventListener(MessageEventsHandler value)
Drops a message event listener
|
protected void |
finalize()
Ensures the underlying native object destruction
|
long |
handle()
Gets the pointer/address to the underlying native object
|
long |
messageHandle()
Gets message handle
|
java.lang.String |
peer()
Gets the message peer
|
void |
peer(java.lang.String value)
Sets the message peer
|
Result |
sendMessage()
Sends the message
|
void |
setMessageEventListener(MessageEventsHandler value)
Sets a message event listener
|
MessageType |
type()
Gets the message type
|
public Message(long handle)
handle
- Pointer/address to the underlying native objectpublic long handle()
protected void finalize()
finalize
in class java.lang.Object
public long messageHandle()
public MessageType type()
MessageType
public java.lang.String peer()
public void peer(java.lang.String value)
value
- The name of the peer to set topublic java.lang.String content()
public void content(java.lang.String value)
value
- The content of the message to be setted topublic Result sendMessage()
public void setMessageEventListener(MessageEventsHandler value)
value
- The message events handlerpublic void dropMessageEventListener(MessageEventsHandler value)
value
- The message events handler