|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.aelitis.azureus.core.peermanager.messaging.MessageManager
public class MessageManager
Field Summary | |
---|---|
protected AEMonitor |
this_mon
|
Method Summary | |
---|---|
Message |
createMessage(byte[] id_bytes,
DirectByteBuffer message_data,
byte version)
Construct a new message instance from the given message information. |
void |
deregisterMessageType(Message message)
Remove registration of given message type from manager. |
Message[] |
getRegisteredMessages()
Get a list of the registered messages. |
static MessageManager |
getSingleton()
|
void |
initialize()
Perform manager initialization. |
Message |
lookupMessage(byte[] id_bytes)
|
Message |
lookupMessage(String id)
Lookup a registered message type via id and version. |
void |
registerMessageType(Message message)
Register the given message type with the manager for processing. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final AEMonitor this_mon
Method Detail |
---|
public static MessageManager getSingleton()
public void initialize()
public void registerMessageType(Message message) throws MessageException
message
- instance to use for decoding
MessageException
- if this message type has already been registeredpublic void deregisterMessageType(Message message)
message
- type to removepublic Message createMessage(byte[] id_bytes, DirectByteBuffer message_data, byte version) throws MessageException
id
- of messagemessage_data
- payload
MessageException
- if message creation failedpublic Message lookupMessage(String id)
id
- to look for
public Message lookupMessage(byte[] id_bytes)
public Message[] getRegisteredMessages()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |