org.jgroups.blocks
public class RequestOptions extends Object
Modifier and Type | Field and Description |
---|---|
protected 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 and Description |
---|
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) |
Modifier and Type | Method and Description |
---|---|
static RequestOptions |
ASYNC() |
RequestOptions |
clearFlags(Message.Flag... flags) |
boolean |
getAnycasting() |
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() |
String |
toString() |
boolean |
useAnycastAddresses() |
RequestOptions |
useAnycastAddresses(boolean flag) |
protected ResponseMode mode
ResponseMode
e.g. GET_NONE, GET_ALLprotected long timeout
protected boolean use_anycasting
protected boolean use_anycast_addresses
protected RspFilter rsp_filter
protected short scope
protected short flags
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)
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 Collection<Address> getExclusionList()
public RequestOptions setExclusionList(Address... mbrs)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.