Class BusPacket<T>

java.lang.Object
com.j_spaces.kernel.pool.Resource
com.j_spaces.core.server.processor.BusPacket<T>
All Implemented Interfaces:
IResource
Direct Known Subclasses:
BlobStoreUnpinMultiplePacket, CheckXtnStatusInTmBusPackect, CommitBusPacket, EntryArrivedPacket, EntryExpiredBusPacket, EntryTakenPacket, EntryUnmatchedPacket, EntryUpdatedPacket, RemoteEventBusPacket, RemoveWaitingForInfoSABusPacket, RollbackBusPacket, UpdateOrWriteBusPacket

public abstract class BusPacket<T> extends Resource
A Bus Packet is an event that is sent on some MT-Queue in order to be handled by a Worker Thread.
  • Constructor Details

    • BusPacket

      protected BusPacket()
      default constructor
    • BusPacket

      protected BusPacket(OperationID operationID, IEntryHolder entryHolder, ServerTransaction xtn, long timeout)
      Creates a new BusPacket object.
  • Method Details

    • execute

      public abstract void execute(T executor) throws Exception
      Throws:
      Exception
    • constructBusPacket

      public void constructBusPacket(OperationID operationID, IEntryHolder entryHolder, ServerTransaction xtn, long timeout)
      Constructs a BusPacket.
    • getOperationID

      public OperationID getOperationID()
    • setOperationID

      protected void setOperationID(OperationID operationID)
    • getCreationTime

      public long getCreationTime()
    • clear

      public void clear()
      Description copied from interface: IResource
      Cleans the resource of its contents so it can be returned to the pool.

      You may use the IResource.isFromPool() indication to decide of a special action before returning a resource to the pool, or discard any actions on resources not returning to the pool.

      Specified by:
      clear in interface IResource
      Specified by:
      clear in class Resource
      See Also:
    • getTransaction

      public ServerTransaction getTransaction()
    • getTimeout

      public long getTimeout()
    • getEntryHolder

      public IEntryHolder getEntryHolder()