Class MapResponseCollector
java.lang.Object
org.infinispan.remoting.transport.ValidResponseCollector<Map<Address,Response>>
org.infinispan.remoting.transport.impl.MapResponseCollector
- All Implemented Interfaces:
ResponseCollector<Map<Address,Response>>
@Experimental
public abstract class MapResponseCollector
extends ValidResponseCollector<Map<Address,Response>>
Response collector supporting
JGroupsTransport.invokeRemotelyAsync(Collection, ReplicableCommand, ResponseMode, long, ResponseFilter, DeliverOrder, boolean).- Since:
- 9.2
- Author:
- Dan Berindei
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionaddException(Address sender, Exception exception) Process an exception from a target.addValidResponse(Address sender, ValidResponse response) Process a valid response from a target.finish()Called afterResponseCollector.addResponse(Address, Response)returnsnullfor the last response.static MapResponseCollectorstatic MapResponseCollectorignoreLeavers(boolean ignoreLeavers) static MapResponseCollectorignoreLeavers(boolean ignoreLeavers, int expectedSize) static MapResponseCollectorignoreLeavers(int expectedSize) protected voidstatic MapResponseCollectorstatic MapResponseCollectorvalidOnly(int expectedSize) Methods inherited from class org.infinispan.remoting.transport.ValidResponseCollector
addResponse, addTargetNotFound
-
Field Details
-
map
-
-
Method Details
-
validOnly
-
validOnly
-
ignoreLeavers
-
ignoreLeavers
-
ignoreLeavers
-
ignoreLeavers
-
addException
Description copied from class:ValidResponseCollectorProcess an exception from a target.- Specified by:
addExceptionin classValidResponseCollector<Map<Address,Response>> - Returns:
nullto continue waiting for responses (the default), non-nullto complete with that value.
-
recordException
-
addValidResponse
Description copied from class:ValidResponseCollectorProcess a valid response from a target.- Specified by:
addValidResponsein classValidResponseCollector<Map<Address,Response>> - Returns:
nullto continue waiting for response, non-nullto complete with that value.
-
finish
Description copied from interface:ResponseCollectorCalled afterResponseCollector.addResponse(Address, 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<Map<Address,Response>> - Specified by:
finishin classValidResponseCollector<Map<Address,Response>>
-