Package com.yahoo.messagebus
Class IntermediateSessionParams
java.lang.Object
com.yahoo.messagebus.IntermediateSessionParams
To facilitate several configuration parameters to the
MessageBus.createIntermediateSession(IntermediateSessionParams)
,
all parameters are held by this class. This class has reasonable default values for each parameter.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorDescriptionConstructs a new instance of this class with default values.Implements the copy constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether or not to broadcast the name of this session on the network.Returns the handler to receive incoming messages.getName()
Returns the name to register with message bus.Returns the handler to receive incoming replies.setBroadcastName
(boolean broadcastName) Sets whether or not to broadcast the name of this session on the network.setMessageHandler
(MessageHandler handler) Sets the handler to recive incoming messages.Sets the name to register with message bus.setReplyHandler
(ReplyHandler handler) Sets the handler to recive incoming replies.
-
Constructor Details
-
IntermediateSessionParams
public IntermediateSessionParams()Constructs a new instance of this class with default values. -
IntermediateSessionParams
Implements the copy constructor.- Parameters:
params
- The object to copy.
-
-
Method Details
-
getName
Returns the name to register with message bus.- Returns:
- The name.
-
setName
Sets the name to register with message bus.- Parameters:
name
- The name to set.- Returns:
- This, to allow chaining.
-
getBroadcastName
public boolean getBroadcastName()Returns whether or not to broadcast the name of this session on the network.- Returns:
- True to broadcast, false otherwise.
-
getReplyHandler
Returns the handler to receive incoming replies.- Returns:
- The handler.
-
setReplyHandler
Sets the handler to recive incoming replies.- Parameters:
handler
- The handler to set.- Returns:
- This, to allow chaining.
-
getMessageHandler
Returns the handler to receive incoming messages.- Returns:
- The handler.
-
setMessageHandler
Sets the handler to recive incoming messages.- Parameters:
handler
- The handler to set.- Returns:
- This, to allow chaining.
-
setBroadcastName
Sets whether or not to broadcast the name of this session on the network.- Parameters:
broadcastName
- True to broadcast, false otherwise.- Returns:
- This, to allow chaining.
-