public interface FailOverService
Modifier and Type | Field and Description |
---|---|
static Object |
NOT_HANDLED
Returned, if container or application does not handle the resource object
in the handleResource() method.
|
Modifier and Type | Method and Description |
---|---|
void |
enableFailOverSupport(boolean flag)
Enable failover support.
|
void |
enablePassivationSupport(boolean flag)
Enable passivation support.
|
String |
getJvmId()
Used for tracking the origin of serialized bean instances.
|
ObjectInputStream |
getObjectInputStream(InputStream in)
Deprecated.
we do not use javassist anymore since owb-1.2.0, thus no special handling is needed!
|
ObjectOutputStream |
getObjectOutputStream(OutputStream out)
Deprecated.
as we do not use Javassist anymore this is not needed anymore!
|
Object |
handleResource(javax.enterprise.inject.spi.Bean<?> bean,
Object resourceObject,
ObjectInput in,
ObjectOutput out)
Container provided custom handler for serialize / deserialize a resource
bean.
|
boolean |
isSupportFailOver() |
boolean |
isSupportPassivation() |
void |
sessionDidActivate(javax.servlet.http.HttpSession session)
Informs the service that the session did activate and that beans should be restored.
|
void |
sessionIsIdle(javax.servlet.http.HttpSession session)
Inform the service that a session is idle and that beans should be stored for fail over.
|
void |
sessionIsInUse(javax.servlet.http.HttpSession session)
Inform the service that the session will be active.
|
void |
sessionWillPassivate(javax.servlet.http.HttpSession session)
Invoked when the session will passivate and that beans should be stored for passivation.
|
static final Object NOT_HANDLED
String getJvmId()
boolean isSupportFailOver()
boolean isSupportPassivation()
void enableFailOverSupport(boolean flag)
flag
- true
to enable failover supportvoid enablePassivationSupport(boolean flag)
flag
- true
to enable passivation supportvoid sessionIsIdle(javax.servlet.http.HttpSession session)
session
- The HttpSession
.void sessionIsInUse(javax.servlet.http.HttpSession session)
session
- The HttpSession
.void sessionDidActivate(javax.servlet.http.HttpSession session)
session
- The HttpSession
.void sessionWillPassivate(javax.servlet.http.HttpSession session)
session
- The HttpSession
.ObjectInputStream getObjectInputStream(InputStream in) throws IOException
IOException
ObjectOutputStream getObjectOutputStream(OutputStream out) throws IOException
IOException
Object handleResource(javax.enterprise.inject.spi.Bean<?> bean, Object resourceObject, ObjectInput in, ObjectOutput out)
bean
- The resource bean.resourceObject
- The resource bean instancein
- The input object streamout
- The output object streamNOT_HANDLED
if not handled by handler.Copyright © 2008–2016 The Apache Software Foundation. All rights reserved.