Package org.apache.myfaces.push
Class WebsocketSessionClusterSerializedRestore
- java.lang.Object
-
- org.apache.myfaces.push.WebsocketSessionClusterSerializedRestore
-
- All Implemented Interfaces:
Externalizable
,Serializable
public class WebsocketSessionClusterSerializedRestore extends Object implements Externalizable
This class ensures the Session instance is properly registered into WebsocketApplicationSessionHolder in case of serialization/deserialization roundtrip.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
WEBSOCKET_SESSION_SERIALIZED_RESTORE
-
Constructor Summary
Constructors Constructor Description WebsocketSessionClusterSerializedRestore()
WebsocketSessionClusterSerializedRestore(String channelToken)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getChannelToken()
boolean
isDeserialized()
void
readExternal(ObjectInput in)
void
setChannelToken(String channelToken)
void
writeExternal(ObjectOutput out)
-
-
-
Field Detail
-
WEBSOCKET_SESSION_SERIALIZED_RESTORE
public static final String WEBSOCKET_SESSION_SERIALIZED_RESTORE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
WebsocketSessionClusterSerializedRestore
public WebsocketSessionClusterSerializedRestore()
-
WebsocketSessionClusterSerializedRestore
public WebsocketSessionClusterSerializedRestore(String channelToken)
-
-
Method Detail
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
getChannelToken
public String getChannelToken()
-
setChannelToken
public void setChannelToken(String channelToken)
-
isDeserialized
public boolean isDeserialized()
-
-