public interface RecyclableResource
StructRecycler
s must implement this interface.Modifier and Type | Method and Description |
---|---|
void |
conditionResource()
Perform any "conditioning" on this resource necessary to allow it to be reused.
|
void |
initialize()
Set the
Struct.Member fields within this instance
to appropriate initial values. |
void |
recycle()
Return this instance to its recycler.
|
void recycle()
void initialize()
Struct.Member
fields within this instance
to appropriate initial values. Upon return, the instance is initialized appropriately so
that its values serve as a prototype from which all other resources acquired from an
StructRecycler
can be cloned.void conditionResource()