Package com.j_spaces.core
Class EntryArrivedPacketsFactory
java.lang.Object
com.j_spaces.core.EntryArrivedPacketsFactory
- All Implemented Interfaces:
IResourceFactory<EntryArrivedPacket>
public class EntryArrivedPacketsFactory
extends Object
implements IResourceFactory<EntryArrivedPacket>
a factory for entry-arrived packets, which holds an inner bound pool which fills on-demand.
- Since:
- 5.1
- Version:
- 1.0
- Author:
- moran
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionallocate()Allocates a new resource instance.voidfreePacket(EntryArrivedPacket resource) Returns this packet to the pool as a free resource.getPacket(OperationID operationID, IEntryHolder entryHolder, ServerTransaction xtn, boolean notifyListeners, IEntryHolder entryValueToNotify, boolean fromReplication) returns a constructed EntryArrivedPacket extracted from the pool of resources.
-
Constructor Details
-
EntryArrivedPacketsFactory
public EntryArrivedPacketsFactory()
-
-
Method Details
-
allocate
Description copied from interface:IResourceFactoryAllocates a new resource instance.- Specified by:
allocatein interfaceIResourceFactory<EntryArrivedPacket>- Returns:
- a new instance of type
IResource
-
getPacket
public EntryArrivedPacket getPacket(OperationID operationID, IEntryHolder entryHolder, ServerTransaction xtn, boolean notifyListeners, IEntryHolder entryValueToNotify, boolean fromReplication) returns a constructed EntryArrivedPacket extracted from the pool of resources.- Returns:
- a free resource which should be returned to the pool.
-
freePacket
Returns this packet to the pool as a free resource. Equivalent to callingResource.release()- Parameters:
resource- the EntryArrivedPacket to be freed.
-