|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jgroups.blocks.RequestOptions
public class RequestOptions
Class which captures a bunch of options relevant to remote method invocation or message sending
Field Summary | |
---|---|
protected java.util.Set<Address> |
exclusion_list
A list of members which should be excluded from a call |
protected short |
flags
The flags set in the message in which a request is sent |
protected ResponseMode |
mode
The mode of a request. |
protected RspFilter |
rsp_filter
Allows for filtering of responses |
protected short |
scope
The scope of a message, allows for concurrent delivery of messages from the same sender |
protected long |
timeout
The max time (in ms) for a blocking call. |
protected boolean |
use_anycast_addresses
If use_anycasting is true: do we want to use an AnycastAddress [B,C] or a unicast to B and another unicast to C to send an anycast to {B,C} ? Only used if use_anycasting is true |
protected boolean |
use_anycasting
Turns on anycasting; this results in multiple unicasts rather than a multicast for group calls |
Constructor Summary | |
---|---|
RequestOptions()
|
|
RequestOptions(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,
Message.Flag... flags)
|
|
RequestOptions(ResponseMode mode,
long timeout,
boolean use_anycasting,
RspFilter rsp_filter,
short flags)
|
Method Summary | |
---|---|
static RequestOptions |
ASYNC()
|
RequestOptions |
clearFlags(Message.Flag... flags)
|
boolean |
getAnycasting()
|
java.util.Collection<Address> |
getExclusionList()
|
short |
getFlags()
|
ResponseMode |
getMode()
|
RspFilter |
getRspFilter()
|
short |
getScope()
|
long |
getTimeout()
|
boolean |
hasExclusionList()
|
boolean |
isFlagSet(Message.Flag flag)
|
RequestOptions |
setAnycasting(boolean use_anycasting)
|
RequestOptions |
setExclusionList(Address... mbrs)
|
RequestOptions |
setFlags(Message.Flag... flags)
|
RequestOptions |
setMode(ResponseMode mode)
|
RequestOptions |
setRspFilter(RspFilter rsp_filter)
|
RequestOptions |
setScope(short scope)
|
RequestOptions |
setTimeout(long timeout)
|
static RequestOptions |
SYNC()
|
java.lang.String |
toString()
|
boolean |
useAnycastAddresses()
|
RequestOptions |
useAnycastAddresses(boolean flag)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ResponseMode mode
ResponseMode
e.g. GET_NONE, GET_ALL
protected long timeout
protected boolean use_anycasting
protected boolean use_anycast_addresses
protected RspFilter rsp_filter
protected short scope
protected short flags
protected java.util.Set<Address> exclusion_list
Constructor Detail |
---|
public RequestOptions()
public RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, Message.Flag... flags)
public RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, short flags)
public RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting, RspFilter rsp_filter)
public RequestOptions(ResponseMode mode, long timeout)
public RequestOptions(ResponseMode mode, long timeout, boolean use_anycasting)
public RequestOptions(RequestOptions opts)
Method Detail |
---|
public static RequestOptions SYNC()
public static RequestOptions ASYNC()
public ResponseMode getMode()
public RequestOptions setMode(ResponseMode mode)
public long getTimeout()
public RequestOptions setTimeout(long timeout)
public boolean getAnycasting()
public RequestOptions setAnycasting(boolean use_anycasting)
public boolean useAnycastAddresses()
public RequestOptions useAnycastAddresses(boolean flag)
public short getScope()
public RequestOptions setScope(short scope)
public RspFilter getRspFilter()
public RequestOptions setRspFilter(RspFilter rsp_filter)
public short getFlags()
public boolean isFlagSet(Message.Flag flag)
public RequestOptions setFlags(Message.Flag... flags)
public RequestOptions clearFlags(Message.Flag... flags)
public boolean hasExclusionList()
public java.util.Collection<Address> getExclusionList()
public RequestOptions setExclusionList(Address... mbrs)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |