public class IntermediateSessionParams extends Object
MessageBus.createIntermediateSession(IntermediateSessionParams)
,
all parameters are held by this class. This class has reasonable default values for each parameter.Constructor and Description |
---|
IntermediateSessionParams()
Constructs a new instance of this class with default values.
|
IntermediateSessionParams(IntermediateSessionParams params)
Implements the copy constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
getBroadcastName()
Returns whether or not to broadcast the name of this session on the network.
|
MessageHandler |
getMessageHandler()
Returns the handler to receive incoming messages.
|
String |
getName()
Returns the name to register with message bus.
|
ReplyHandler |
getReplyHandler()
Returns the handler to receive incoming replies.
|
IntermediateSessionParams |
setBroadcastName(boolean broadcastName)
Sets whether or not to broadcast the name of this session on the network.
|
IntermediateSessionParams |
setMessageHandler(MessageHandler handler)
Sets the handler to recive incoming messages.
|
IntermediateSessionParams |
setName(String name)
Sets the name to register with message bus.
|
IntermediateSessionParams |
setReplyHandler(ReplyHandler handler)
Sets the handler to recive incoming replies.
|
public IntermediateSessionParams()
public IntermediateSessionParams(IntermediateSessionParams params)
params
- The object to copy.public String getName()
public IntermediateSessionParams setName(String name)
name
- The name to set.public boolean getBroadcastName()
public ReplyHandler getReplyHandler()
public IntermediateSessionParams setReplyHandler(ReplyHandler handler)
handler
- The handler to set.public MessageHandler getMessageHandler()
public IntermediateSessionParams setMessageHandler(MessageHandler handler)
handler
- The handler to set.public IntermediateSessionParams setBroadcastName(boolean broadcastName)
broadcastName
- True to broadcast, false otherwise.Copyright © 2018. All rights reserved.