public class HttpSessionManagedObject extends Object implements CoordinatingManagedObject<Indexed>, AsynchronousManagedObject
ManagedObject
for a HttpSession
.Constructor and Description |
---|
HttpSessionManagedObject(String sessionIdCookieName,
int serverHttpConnectionIndex,
int httpSessionIdGeneratorIndex,
HttpSessionIdGenerator httpSessionIdGenerator,
int httpSessionStoreIndex,
HttpSessionStore httpSessionStore)
Initiate.
|
Modifier and Type | Method and Description |
---|---|
Object |
getObject()
Obtains the object being managed.
|
void |
loadObjects(ObjectRegistry<Indexed> registry)
Loads the Objects of the
ManagedObject instances to be referenced
by this CoordinatingManagedObject . |
void |
registerAsynchronousCompletionListener(AsynchronousListener listener)
Provides the
AsynchronousListener to the
AsynchronousManagedObject to enable call back to notify state and
completion of asynchronous processing. |
public HttpSessionManagedObject(String sessionIdCookieName, int serverHttpConnectionIndex, int httpSessionIdGeneratorIndex, HttpSessionIdGenerator httpSessionIdGenerator, int httpSessionStoreIndex, HttpSessionStore httpSessionStore)
sessionIdCookieName
- Name of the HttpCookie
containing the Session Id.serverHttpConnectionIndex
- Index of the dependency ServerHttpConnection
.httpSessionIdGeneratorIndex
- Index of the dependency HttpSessionIdGenerator
.httpSessionIdGenerator
- HttpSessionIdGenerator
. null
to obtain
via dependency.httpSessionStoreIndex
- Index of the dependency HttpSessionStore
.httpSessionStore
- HttpSessionStore
. null
to obtain via
dependency.public void registerAsynchronousCompletionListener(AsynchronousListener listener)
AsynchronousManagedObject
AsynchronousListener
to the
AsynchronousManagedObject
to enable call back to notify state and
completion of asynchronous processing.registerAsynchronousCompletionListener
in interface AsynchronousManagedObject
listener
- AsynchronousListener
.public void loadObjects(ObjectRegistry<Indexed> registry) throws Throwable
CoordinatingManagedObject
Loads the Objects of the ManagedObject
instances to be referenced
by this CoordinatingManagedObject
.
References to the loaded Objects must be released on recycling the
ManagedObject
.
loadObjects
in interface CoordinatingManagedObject<Indexed>
registry
- Registry of the Objects for the ManagedObject
instances.Throwable
- Should this CoordinatingManagedObject
fail to load
the ManagedObject
.public Object getObject() throws Throwable
ManagedObject
getObject
in interface ManagedObject
Throwable
- Indicating failed to obtain the object for use.Copyright © 2005–2016. All rights reserved.