Package org.jgroups.blocks
Class RequestOptions
java.lang.Object
org.jgroups.blocks.RequestOptions
Class which captures a bunch of options relevant to remote method invocation or message sending
- Since:
- 2.10
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Address[]A list of members which should be excluded from a callprotected shortThe flags set in the message in which a request is sentprotected ResponseModeThe mode of a request.protected RspFilterAllows for filtering of responsesprotected longThe max time (in ms) for a blocking call.protected shortprotected booleanTurns on anycasting; this results in multiple unicasts rather than a multicast for group calls -
Constructor Summary
ConstructorsConstructorDescriptionRequestOptions(RequestOptions opts) RequestOptions(ResponseMode mode, long timeout) RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting) RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter) RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, short flags) RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, Message.Flag... flags) -
Method Summary
Modifier and TypeMethodDescriptionbooleananycasting(boolean a) static RequestOptionsASYNC()clearFlags(Message.Flag... flags) clearTransientFlags(Message.TransientFlag... flags) Address[]exclusionList(Address... mbrs) shortflags()flags(Message.Flag... flags) booleanflagSet(Message.Flag flag) booleanAddress[]shortgetFlags()getMode()longshortbooleanbooleanisFlagSet(Message.Flag flag) mode()mode(ResponseMode mode) setAnycasting(boolean a) setFlags(short flags) Not recommended as the internal representation of flags might change (e.g.setFlags(Message.Flag... flags) setMode(ResponseMode mode) setRspFilter(RspFilter filter) setTimeout(long timeout) setTransientFlags(short flags) Not recommended as the internal representation of flags might change (e.g.setTransientFlags(Message.TransientFlag... flags) static RequestOptionsSYNC()longtimeout()timeout(long timeout) toString()shorttransientFlags(Message.TransientFlag... flags) boolean
-
Field Details
-
mode
The mode of a request. Defined inResponseModee.g. GET_NONE, GET_ALL -
timeout
protected long timeoutThe max time (in ms) for a blocking call. 0 blocks until all responses have been received (if mode = GET_ALL) -
use_anycasting
protected boolean use_anycastingTurns on anycasting; this results in multiple unicasts rather than a multicast for group calls -
rsp_filter
Allows for filtering of responses -
flags
protected short flagsThe flags set in the message in which a request is sent -
transient_flags
protected short transient_flags -
exclusion_list
A list of members which should be excluded from a call
-
-
Constructor Details
-
RequestOptions
public RequestOptions() -
RequestOptions
public RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, Message.Flag... flags) -
RequestOptions
public RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, short flags) -
RequestOptions
public RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter) -
RequestOptions
-
RequestOptions
-
RequestOptions
-
-
Method Details
-
SYNC
-
ASYNC
-
getMode
-
mode
-
setMode
-
mode
-
getTimeout
public long getTimeout() -
timeout
public long timeout() -
setTimeout
-
timeout
-
getAnycasting
public boolean getAnycasting() -
anycasting
public boolean anycasting() -
setAnycasting
-
anycasting
-
getRspFilter
-
rspFilter
-
setRspFilter
-
rspFilter
-
getFlags
public short getFlags() -
flags
public short flags() -
getTransientFlags
public short getTransientFlags() -
transientFlags
public short transientFlags() -
getExclusionList
-
exclusionList
-
hasExclusionList
public boolean hasExclusionList() -
isFlagSet
-
flagSet
-
transientFlagSet
-
setFlags
-
flags
-
setFlags
Not recommended as the internal representation of flags might change (e.g. from short to int). UsesetFlags(Message.Flag...)instead -
setTransientFlags
-
transientFlags
-
setTransientFlags
Not recommended as the internal representation of flags might change (e.g. from short to int). UsesetTransientFlags(Message.TransientFlag...)instead. -
clearFlags
-
clearTransientFlags
-
exclusionList
-
toString
-