Class RequestOptions

java.lang.Object
org.jgroups.blocks.RequestOptions

public class RequestOptions extends Object
Class which captures a bunch of options relevant to remote method invocation or message sending
Since:
2.10
Author:
Bela Ban
  • Field Details

    • sealed

      protected boolean sealed
      When options are sealed, subsequent modifications will throw an exception
    • SYNC

      @Deprecated public static final RequestOptions SYNC
      Deprecated.
    • ASYNC

      @Deprecated public static final RequestOptions ASYNC
      Deprecated.
  • Constructor Details

    • RequestOptions

      public RequestOptions()
    • RequestOptions

      public RequestOptions(int mode, long timeout, boolean use_anycasting, RspFilter rsp_filter, byte flags)
    • RequestOptions

      public RequestOptions(int mode, long timeout, boolean use_anycasting, RspFilter rsp_filter)
    • RequestOptions

      public RequestOptions(int mode, long timeout)
    • RequestOptions

      public RequestOptions(RequestOptions opts)
  • Method Details

    • SYNC

      public static RequestOptions SYNC()
    • ASYNC

      public static RequestOptions ASYNC()
    • getMode

      public int getMode()
    • setMode

      public RequestOptions setMode(int mode)
    • getTimeout

      public long getTimeout()
    • setTimeout

      public RequestOptions setTimeout(long timeout)
    • getAnycasting

      public boolean getAnycasting()
    • setAnycasting

      public RequestOptions setAnycasting(boolean use_anycasting)
    • getScope

      public short getScope()
    • setScope

      public RequestOptions setScope(short scope)
    • getRspFilter

      public RspFilter getRspFilter()
    • setRspFilter

      public RequestOptions setRspFilter(RspFilter rsp_filter)
    • getFlags

      public byte getFlags()
    • setFlags

      public RequestOptions setFlags(byte flags)
    • clearFlags

      public RequestOptions clearFlags(byte flags)
    • hasExclusionList

      public boolean hasExclusionList()
    • getExclusionList

      public Collection<Address> getExclusionList()
    • setExclusionList

      public RequestOptions setExclusionList(Address... mbrs)
    • seal

      @Deprecated public RequestOptions seal()
      Deprecated.
      Will get removed together with SYNC and ASYNC in 3.0
      Seals options against subsequent modifications
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • checkSealed

      protected void checkSealed()