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
A Bus Packet is an event that is sent on some MT-Queue in order to be handled by a Worker
Thread.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotecteddefault constructorprotectedBusPacket(OperationID operationID, IEntryHolder entryHolder, ServerTransaction xtn, long timeout) Creates a new BusPacket object. -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Cleans the resource of its contents so it can be returned to the pool.voidconstructBusPacket(OperationID operationID, IEntryHolder entryHolder, ServerTransaction xtn, long timeout) Constructs a BusPacket.abstract voidlonglongprotected voidsetOperationID(OperationID operationID) Methods inherited from class com.j_spaces.kernel.pool.Resource
acquire, isAcquired, isFromPool, release, setAcquired, setFromPool
-
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
- Throws:
Exception
-
constructBusPacket
public void constructBusPacket(OperationID operationID, IEntryHolder entryHolder, ServerTransaction xtn, long timeout) Constructs a BusPacket. -
getOperationID
-
setOperationID
-
getCreationTime
public long getCreationTime() -
clear
public void clear()Description copied from interface:IResourceCleans 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. -
getTransaction
-
getTimeout
public long getTimeout() -
getEntryHolder
-