public class DestinationSessionParams extends Object
MessageBus.createDestinationSession(DestinationSessionParams)
,
all parameters are held by this class. This class has reasonable default values for each parameter.Constructor and Description |
---|
DestinationSessionParams()
Constructs a new instance of this class with default values.
|
DestinationSessionParams(DestinationSessionParams 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.
|
DestinationSessionParams |
setBroadcastName(boolean broadcastName)
Sets whether or not to broadcast the name of this session on the network.
|
DestinationSessionParams |
setMessageHandler(MessageHandler handler)
Sets the handler to recive incoming messages.
|
DestinationSessionParams |
setName(String name)
Sets the name to register with message bus.
|
public DestinationSessionParams()
public DestinationSessionParams(DestinationSessionParams params)
params
- The object to copy.public String getName()
public DestinationSessionParams setName(String name)
name
- The name to set.public boolean getBroadcastName()
public DestinationSessionParams setBroadcastName(boolean broadcastName)
broadcastName
- True to broadcast, false otherwise.public MessageHandler getMessageHandler()
public DestinationSessionParams setMessageHandler(MessageHandler handler)
handler
- The handler to set.Copyright © 2018. All rights reserved.