Class VoidResponseCollector
java.lang.Object
org.infinispan.remoting.transport.ValidResponseCollector<Void>
org.infinispan.remoting.transport.impl.VoidResponseCollector
- All Implemented Interfaces:
ResponseCollector<Address,Void>
Response collector that discards successful responses and returns
null.
Throws an exception if it receives at least one exception response, or if
a node is suspected and ignoreLeavers == true.
- Since:
- 9.2
- Author:
- Dan Berindei
-
Method Summary
Modifier and TypeMethodDescriptionprotected VoidaddException(Address sender, Exception exception) Process an exception from a target.protected VoidaddTargetNotFound(Address sender) Process a target leaving the cluster or stopping the cache.protected VoidaddValidResponse(Address sender, ValidResponse<?> response) Process a valid response from a target.finish()Called afterResponseCollector.addResponse(S, Response)returnsnullfor the last response.static VoidResponseCollectorstatic VoidResponseCollectorMethods inherited from class org.infinispan.remoting.transport.ValidResponseCollector
addResponse
-
Method Details
-
validOnly
-
ignoreLeavers
-
addTargetNotFound
Description copied from class:ValidResponseCollectorProcess a target leaving the cluster or stopping the cache.- Specified by:
addTargetNotFoundin classValidResponseCollector<Void>- Returns:
nullto continue waiting for response, non-nullto complete with that value.
-
addException
Description copied from class:ValidResponseCollectorProcess an exception from a target.- Specified by:
addExceptionin classValidResponseCollector<Void>- Returns:
nullto continue waiting for responses (the default), non-nullto complete with that value.
-
addValidResponse
Description copied from class:ValidResponseCollectorProcess a valid response from a target.- Specified by:
addValidResponsein classValidResponseCollector<Void>- Returns:
nullto continue waiting for response, non-nullto complete with that value.
-
finish
Description copied from interface:ResponseCollectorCalled afterResponseCollector.addResponse(S, Response)returnsnullfor the last response.If
finish()finishes normally, the request will complete with its return value (even ifnull). Iffinish()throws an exception, the request will complete exceptionally with that exception, wrapped in aCompletionException(unless the exception is already aCompletionException).- Specified by:
finishin interfaceResponseCollector<Address,Void> - Specified by:
finishin classValidResponseCollector<Void>
-