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
- Author:
- Bela Ban
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final RequestOptionsDeprecated.protected booleanWhen options are sealed, subsequent modifications will throw an exceptionstatic final RequestOptionsDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionRequestOptions(int mode, long timeout) RequestOptions(int mode, long timeout, boolean use_anycasting, RspFilter rsp_filter) RequestOptions(int mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, byte flags) RequestOptions(RequestOptions opts) -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestOptionsASYNC()protected voidclearFlags(byte flags) booleanbytegetFlags()intgetMode()shortgetScope()longbooleanseal()Deprecated.Will get removed together with SYNC and ASYNC in 3.0setAnycasting(boolean use_anycasting) setExclusionList(Address... mbrs) setFlags(byte flags) setMode(int mode) setRspFilter(RspFilter rsp_filter) setScope(short scope) setTimeout(long timeout) static RequestOptionsSYNC()toString()
-
Field Details
-
sealed
protected boolean sealedWhen options are sealed, subsequent modifications will throw an exception -
SYNC
Deprecated. -
ASYNC
Deprecated.
-
-
Constructor Details
-
RequestOptions
public RequestOptions() -
RequestOptions
public RequestOptions(int mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, byte flags) -
RequestOptions
-
RequestOptions
public RequestOptions(int mode, long timeout) -
RequestOptions
-
-
Method Details
-
SYNC
-
ASYNC
-
getMode
public int getMode() -
setMode
-
getTimeout
public long getTimeout() -
setTimeout
-
getAnycasting
public boolean getAnycasting() -
setAnycasting
-
getScope
public short getScope() -
setScope
-
getRspFilter
-
setRspFilter
-
getFlags
public byte getFlags() -
setFlags
-
clearFlags
-
hasExclusionList
public boolean hasExclusionList() -
getExclusionList
-
setExclusionList
-
seal
Deprecated.Will get removed together with SYNC and ASYNC in 3.0Seals options against subsequent modifications -
toString
-
checkSealed
protected void checkSealed()
-