Package org.infinispan.remoting.rpc
Class RpcOptionsBuilder
- java.lang.Object
-
- org.infinispan.remoting.rpc.RpcOptionsBuilder
-
@Deprecated public class RpcOptionsBuilder extends Object
Deprecated.Since 9.2, please useRpcOptions
directly.It buildsRpcOptions
instances with the options to be used in remote invocations.- Since:
- 5.3
- Author:
- Pedro Ruivo
-
-
Constructor Summary
Constructors Constructor Description RpcOptionsBuilder(long timeout, TimeUnit unit, ResponseMode responseMode, DeliverOrder deliverOrder)
Deprecated.RpcOptionsBuilder(RpcOptions template)
Deprecated.Constructor based on existingRpcOptions
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RpcOptions
build()
Deprecated.RpcOptionsBuilder
deliverMode(DeliverOrder deliverOrder)
Deprecated.boolean
equals(Object o)
Deprecated.int
hashCode()
Deprecated.RpcOptionsBuilder
responseFilter(ResponseFilter responseFilter)
Deprecated.Since 9.2, ignored byRpcManager.invokeCommand*()
.RpcOptionsBuilder
responseMode(ResponseMode responseMode)
Deprecated.Since 9.2, ignored byRpcManager.invokeCommand*()
.RpcOptionsBuilder
skipReplicationQueue(boolean skipReplicationQueue)
Deprecated.Since 9.0, it no longer does anything.RpcOptionsBuilder
timeout(long timeout, TimeUnit unit)
Deprecated.Sets the timeout value and itsTimeUnit
.long
timeout(TimeUnit outputTimeUnit)
Deprecated.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
RpcOptionsBuilder
public RpcOptionsBuilder(long timeout, TimeUnit unit, ResponseMode responseMode, DeliverOrder deliverOrder)
Deprecated.
-
RpcOptionsBuilder
public RpcOptionsBuilder(RpcOptions template)
Deprecated.Constructor based on existingRpcOptions
- Parameters:
template
- an existingRpcOptions
-
-
Method Detail
-
timeout
public RpcOptionsBuilder timeout(long timeout, TimeUnit unit)
Deprecated.Sets the timeout value and itsTimeUnit
.- Parameters:
timeout
- timeout valueunit
- theTimeUnit
of timeout value- Returns:
- this instance
-
deliverMode
public RpcOptionsBuilder deliverMode(DeliverOrder deliverOrder)
Deprecated.- Parameters:
deliverOrder
- theDeliverOrder
.- Returns:
- this instance.
-
responseFilter
public RpcOptionsBuilder responseFilter(ResponseFilter responseFilter)
Deprecated.Since 9.2, ignored byRpcManager.invokeCommand*()
.Sets theResponseFilter
.null
by default, meaning it will wait for all or none response depending if the remote invocation is synchronous or asynchronous respectively.- Parameters:
responseFilter
-- Returns:
- this instance
-
responseMode
public RpcOptionsBuilder responseMode(ResponseMode responseMode)
Deprecated.Since 9.2, ignored byRpcManager.invokeCommand*()
.Sets theResponseMode
for the remote invocation. SeeResponseMode
documentation to see the available values.- Parameters:
responseMode
-- Returns:
- this instance
-
skipReplicationQueue
@Deprecated public RpcOptionsBuilder skipReplicationQueue(boolean skipReplicationQueue)
Deprecated.Since 9.0, it no longer does anything.
-
build
public final RpcOptions build()
Deprecated.- Returns:
- an instance of
RpcOptions
with the current builder options
-
-