Package org.distributeme.core
Class ClientSideCallContext
java.lang.Object
org.distributeme.core.AbstractCallContext
org.distributeme.core.ClientSideCallContext
This class represents a collection of infos available on the client side in the stub and stub-related code.
This information can be used for Routing or Failing strategies.
- Version:
- $Id: $Id
- Author:
- another
-
Constructor Summary
ConstructorsConstructorDescriptionClientSideCallContext(String aMethodName) Constructor for ClientSideCallContext.ClientSideCallContext(String aServiceId, String aMethodName, List<?> someParameters) Constructor for ClientSideCallContext. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the context call counter, which means how many attempts to call the server has been made.increaseCallCount.booleanisFirstCall.voidsetCallCount(int callCount) Setter for the fieldcallCount.toString()Methods inherited from class org.distributeme.core.AbstractCallContext
getCurrentTransportableCallContext, getMethodName, getParameters, getServiceId, getTransportableCallContext, setIncomingTransportableCallContext, setMethodName, setParameters, setServiceId
-
Constructor Details
-
Method Details
-
getCallCount
public int getCallCount()Returns the context call counter, which means how many attempts to call the server has been made.- Returns:
- a int.
-
setCallCount
public void setCallCount(int callCount) Setter for the field
callCount.- Parameters:
callCount- a int.
-
isFirstCall
public boolean isFirstCall()isFirstCall.
- Returns:
- a boolean.
-
increaseCallCount
increaseCallCount.
- Returns:
- a
ClientSideCallContextobject.
-
toString
- Overrides:
toStringin classAbstractCallContext
-