public static class RouterHandler.Heaplet extends GenericHeaplet
Constructor and Description |
---|
Heaplet() |
Modifier and Type | Method and Description |
---|---|
Object |
create()
Called to request the heaplet create an object.
|
void |
destroy()
Called to indicate that the object created by the heaplet is going to be dereferenced.
|
protected String |
getType()
Returns the type of the IG object.
|
void |
start()
Called to request the heaplet start an object.
|
create, endpointRegistry, evaluatedWithHeapProperties, expression, getConfig, getHeap, getSecretService, meterRegistryHolder
protected String getType()
GenericHeaplet
getType
in class GenericHeaplet
public Object create() throws HeapException
GenericHeaplet
Heaplet.create(Name, JsonValue, Heap)
after initializing
the protected field members. Implementations should parse configuration
but not acquire resources, start threads, or log any initialization
messages. These tasks should be performed by the GenericHeaplet.start()
method.create
in class GenericHeaplet
HeapException
- if an exception occurred during creation of the heap object
or any of its dependencies.public void start() throws HeapException
GenericHeaplet
Heaplet.create(Name, JsonValue, Heap)
after creating and
configuring the object and once the object's logger and storage have been
configured. Implementations should override this method if they need to
acquire resources, start threads, or log any initialization messages.start
in class GenericHeaplet
HeapException
- if an exception occurred while starting the heap object or
any of its dependencies.public void destroy()
Heaplet
destroy
in interface Heaplet
destroy
in class GenericHeaplet
Copyright 2011-2017 ForgeRock AS.