|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.infinispan.remoting.rpc.RpcOptionsBuilder
public class RpcOptionsBuilder
It builds RpcOptions
instances with the options to be used in remote invocations.
Constructor Summary | |
---|---|
RpcOptionsBuilder(long timeout,
TimeUnit unit,
ResponseMode responseMode,
boolean fifoOrder)
|
|
RpcOptionsBuilder(RpcOptions template)
Constructor based on existing RpcOptions |
Method Summary | |
---|---|
RpcOptions |
build()
|
boolean |
equals(Object o)
|
RpcOptionsBuilder |
fifoOrder(boolean fifoOrder)
Note: this option may be set to false if by the current Transport
if the ResponseMode.isSynchronous() returns true . |
int |
hashCode()
|
RpcOptionsBuilder |
responseFilter(ResponseFilter responseFilter)
Sets the ResponseFilter . |
RpcOptionsBuilder |
responseMode(ResponseMode responseMode)
Sets the ResponseMode for the remote invocation. |
RpcOptionsBuilder |
skipReplicationQueue(boolean skipReplicationQueue)
Sets if the remote invocation must skip the ReplicationQueue . |
RpcOptionsBuilder |
timeout(long timeout,
TimeUnit unit)
Sets the timeout value and its TimeUnit . |
long |
timeout(TimeUnit outputTimeUnit)
See timeout(long, java.util.concurrent.TimeUnit) |
String |
toString()
|
RpcOptionsBuilder |
totalOrder(boolean totalOrder)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RpcOptionsBuilder(long timeout, TimeUnit unit, ResponseMode responseMode, boolean fifoOrder)
public RpcOptionsBuilder(RpcOptions template)
RpcOptions
template
- an existing RpcOptions
Method Detail |
---|
public RpcOptionsBuilder timeout(long timeout, TimeUnit unit)
TimeUnit
.
timeout
- timeout valueunit
- the TimeUnit
of timeout value
public long timeout(TimeUnit outputTimeUnit)
timeout(long, java.util.concurrent.TimeUnit)
TimeUnit
.public RpcOptionsBuilder fifoOrder(boolean fifoOrder)
false
if by the current Transport
if the ResponseMode.isSynchronous()
returns true
.
fifoOrder
- if true
, it the message will be deliver in First In, First Out (FIFO) order with other
sent message with FIFO. Otherwise, the message is delivered as soon as it is received.
public RpcOptionsBuilder totalOrder(boolean totalOrder)
totalOrder
- if true
, the message will be delivered by a global order, i.e., the same order in all
the nodes
public RpcOptionsBuilder responseFilter(ResponseFilter responseFilter)
ResponseFilter
. null
by default, meaning it will wait for all or none response depending
if the remote invocation is synchronous or asynchronous respectively.
responseFilter
-
public RpcOptionsBuilder responseMode(ResponseMode responseMode)
ResponseMode
for the remote invocation. See ResponseMode
documentation to see the
available values.
responseMode
-
public RpcOptionsBuilder skipReplicationQueue(boolean skipReplicationQueue)
ReplicationQueue
.
Note1: only asynchronous remote invocation may be dispatched to the ReplicationQueue
.
Node2: false
by default
skipReplicationQueue
- true
to force skip the ReplicationQueue
public final RpcOptions build()
RpcOptions
with the current builder optionspublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
--> | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |