Class Response

  • All Implemented Interfaces:
    java.io.Serializable

    @Internal
    public class Response
    extends java.lang.Object
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • Response

        public Response()
      • Response

        public Response​(Response.Flags flags,
                        long seqId,
                        long stamp,
                        int targetPartitionId)
    • Method Detail

      • forRequest

        public static Response forRequest​(Request request)
        Create Response that is targetted to be response for given request.
        Parameters:
        request - the request to create Response for
        Returns:
        new empty Response
      • empty

        public static Response empty()
        Create empty Response.
        Returns:
        empty response
      • open

        public Response open​(long seqId,
                             long stamp)
        Create response for open transaction.
        Returns:
        response for open transaction
      • committed

        public Response committed()
        Create response for committed transaction.
        Returns:
        response for committed transaction.
      • aborted

        public Response aborted()
        Create response for aborted transaction.
        Returns:
        response for aborted transaction.
      • duplicate

        public Response duplicate​(long seqId)
        Create response for duplicate transaction open requests.
        Returns:
        response for duplicate transaction open requests.
      • hasSequenceId

        public boolean hasSequenceId()
      • hasStamp

        public boolean hasStamp()
      • getPartitionIdForResponse

        public int getPartitionIdForResponse()
      • hasPartitionIdForResponse

        public boolean hasPartitionIdForResponse()