public class ProtocolModuleExtender extends Object
ProtocolModule
Modifier and Type | Method and Description |
---|---|
<M extends ExtendedMessage> |
addExtendedMessageHandler(String messageType,
Class<? extends MessageHandler<M>> handlerType)
Contribute a message handler type, that will process BEP-10 messages of the given type.
|
<M extends ExtendedMessage> |
addExtendedMessageHandler(String messageType,
MessageHandler<M> handler)
Contribute a message handler instance, that will process BEP-10 messages of the given type.
|
ProtocolModuleExtender |
addHandshakeHandler(Class<? extends HandshakeHandler> handlerType)
Contribute a handshake handler type.
|
ProtocolModuleExtender |
addHandshakeHandler(HandshakeHandler handler)
Contribute a handshake handler instance.
|
<M extends Message> |
addMessageHandler(int messageType,
Class<? extends MessageHandler<M>> handlerType)
Contribute a message handler type, that will process BEP-3 messages with the given ID.
|
<M extends Message> |
addMessageHandler(int messageType,
MessageHandler<M> handler)
Contribute a message handler instance, that will process BEP-3 messages with the given ID.
|
public <M extends Message> ProtocolModuleExtender addMessageHandler(int messageType, Class<? extends MessageHandler<M>> handlerType)
public <M extends Message> ProtocolModuleExtender addMessageHandler(int messageType, MessageHandler<M> handler)
public <M extends ExtendedMessage> ProtocolModuleExtender addExtendedMessageHandler(String messageType, Class<? extends MessageHandler<M>> handlerType)
public <M extends ExtendedMessage> ProtocolModuleExtender addExtendedMessageHandler(String messageType, MessageHandler<M> handler)
public ProtocolModuleExtender addHandshakeHandler(Class<? extends HandshakeHandler> handlerType)
public ProtocolModuleExtender addHandshakeHandler(HandshakeHandler handler)
Copyright © 2016–2021. All rights reserved.