FileDocCategorySizeDatePackage
MessageManager.javaAPI DocAzureus 3.0.3.42972Wed Jun 21 02:19:18 BST 2006org.gudy.azureus2.plugins.messaging

MessageManager

public interface MessageManager
Manages peer message handling.

Fields Summary
public static final int
STREAM_ENCRYPTION_NONE
public static final int
STREAM_ENCRYPTION_RC4_PREFERRED
public static final int
STREAM_ENCRYPTION_RC4_REQUIRED
Constructors Summary
Methods Summary
public voidcancelCompatiblePeersLocation(MessageManagerListener orig_listener)
Cancel registration for compatible-peer notification.

param
orig_listener listener used for registration

public voidderegisterMessageType(Message message)
Remove registration of given message type from manager.

param
message type to remove

public voidlocateCompatiblePeers(org.gudy.azureus2.plugins.PluginInterface plug_interface, Message message, MessageManagerListener listener)
Globally register for notification of peers that support the given message type.

param
plug_interface to get the download manager
param
message to match
param
listener to notify

public org.gudy.azureus2.plugins.messaging.generic.GenericMessageRegistrationregisterGenericMessageType(java.lang.String type, java.lang.String description, int stream_encryption, org.gudy.azureus2.plugins.messaging.generic.GenericMessageHandler handler)
Register a peer-independent message handler

param
type
param
description
param
handler
return
throws
MessageException

public voidregisterMessageType(Message message)
Register the given message type with the manager for processing. NOTE: A message type needs to be registered in order for support to be advertised to other peers.

param
message instance to use for decoding
throws
MessageException if this message type has already been registered