Class RpcChannel.RpcCollector
java.lang.Object
org.apache.catalina.tribes.group.RpcChannel.RpcCollector
- Enclosing class:
RpcChannel
Class that holds all response.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionRpcCollector(RpcChannel.RpcCollectorKey key, int options, int destcnt) Create a new RpcCollector. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddResponse(Serializable message, Member sender) Add a response to the collector.booleanResponse[]Get the collected responses.inthashCode()booleanCheck if the collector has received enough responses.
-
Field Details
-
responses
-
key
The collector key. -
options
public final int optionsThe RPC options. -
destcnt
public int destcntThe destination count.
-
-
Constructor Details
-
RpcCollector
Create a new RpcCollector.- Parameters:
key- The collector keyoptions- The RPC optionsdestcnt- The destination count
-
-
Method Details
-
addResponse
Add a response to the collector.- Parameters:
message- The response messagesender- The sender of the response
-
isComplete
public boolean isComplete()Check if the collector has received enough responses.- Returns:
trueif the collector is complete
-
hashCode
-
equals
-
getResponses
-