public class SourceSessionParams extends Object
MessageBus.createSourceSession(ReplyHandler,
SourceSessionParams)
, all parameters are held by this class. This class has reasonable default values for each
parameter.Constructor and Description |
---|
SourceSessionParams()
Instantiates a parameter object with default values.
|
SourceSessionParams(SourceSessionParams params)
Implements the copy constructor.
|
Modifier and Type | Method and Description |
---|---|
ReplyHandler |
getReplyHandler()
Returns the handler to receive incoming replies.
|
ThrottlePolicy |
getThrottlePolicy()
Returns the policy to use for throttling output.
|
double |
getTimeout()
Returns the number of seconds a message can spend trying to succeed.
|
SourceSessionParams |
setReplyHandler(ReplyHandler handler)
Sets the handler to recive incoming replies.
|
SourceSessionParams |
setThrottlePolicy(ThrottlePolicy throttlePolicy)
Sets the policy to use for throttling output.
|
SourceSessionParams |
setTimeout(double timeout)
Sets the number of seconds a message can be attempted sent until it times out.
|
public SourceSessionParams()
public SourceSessionParams(SourceSessionParams params)
params
- The object to copy.public ThrottlePolicy getThrottlePolicy()
public SourceSessionParams setThrottlePolicy(ThrottlePolicy throttlePolicy)
throttlePolicy
- The policy to set.public double getTimeout()
public SourceSessionParams setTimeout(double timeout)
timeout
- The numer of seconds allowed.public ReplyHandler getReplyHandler()
public SourceSessionParams setReplyHandler(ReplyHandler handler)
handler
- The handler to set.Copyright © 2018. All rights reserved.