Class ClientSideCallContext

java.lang.Object
org.distributeme.core.AbstractCallContext
org.distributeme.core.ClientSideCallContext

public class ClientSideCallContext extends AbstractCallContext
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 Details

    • ClientSideCallContext

      public ClientSideCallContext(String aMethodName)

      Constructor for ClientSideCallContext.

      Parameters:
      aMethodName - a String object.
    • ClientSideCallContext

      public ClientSideCallContext(String aServiceId, String aMethodName, List<?> someParameters)

      Constructor for ClientSideCallContext.

      Parameters:
      aServiceId - a String object.
      aMethodName - a String object.
      someParameters - a List object.
  • 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

      public ClientSideCallContext increaseCallCount()

      increaseCallCount.

      Returns:
      a ClientSideCallContext object.
    • toString

      public String toString()
      Overrides:
      toString in class AbstractCallContext