Interface IResourceFactory<R extends IResource>

All Known Subinterfaces:
IMemoryAwareResourceFactory<R>
All Known Implementing Classes:
CompressedMarshObjectConvertor.CompressedMarshObjectConvertorFactory, ConnectionFactory, ConnectionResourceFactory, EntryArrivedPacketsFactory, MarshObjectConvertor.MarshObjectConvertorFactory, ReadWriteLockFactory

public interface IResourceFactory<R extends IResource>
IResourceFactory interface for allocating new resources out of the ResourcesPool. Implementing classes should hold an instance of the ResourcePool
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Allocates a new resource instance.
  • Method Details

    • allocate

      R allocate()
      Allocates a new resource instance.
      Returns:
      a new instance of type IResource