Node.Cookie@Deprecated public interface ConnectionCookie extends Node.Cookie
| Modifier and Type | Interface | Description |
|---|---|---|
static class |
ConnectionCookie.Event |
Deprecated.
Event that is fired to listeners.
|
static interface |
ConnectionCookie.Listener |
Deprecated.
Cookie that must be provided by a node that is willing to register
itself as a listener to a ConnectionCookie.
|
static interface |
ConnectionCookie.Type |
Deprecated.
Interface describing cookie type of event a cookie can produce.
|
| Modifier and Type | Method | Description |
|---|---|---|
java.util.Set<? extends ConnectionCookie.Type> |
getTypes() |
Deprecated.
Immutable set of types supported by this connection source.
|
void |
register(ConnectionCookie.Type type,
Node listener) |
Deprecated.
Attaches new node to listen to events produced by this
event.
|
void |
unregister(ConnectionCookie.Type type,
Node listener) |
Deprecated.
Unregisters an listener.
|
void register(ConnectionCookie.Type type, Node listener) throws java.io.IOException
type - the type of event, must be supported by the cookielistener - the node that should be notifiedInvalidObjectException - if the type is not supported by the cookiejava.io.IOException - if the type is persistent and the listener does not
have serializable handle (listener.getHandle () is null or its serialization
throws an exception)void unregister(ConnectionCookie.Type type, Node listener) throws java.io.IOException
type - type of event to unregister the listener from listening tolistener - to unregisterjava.io.IOException - if there is I/O operation error when the removing
the listener from persistent storagejava.util.Set<? extends ConnectionCookie.Type> getTypes()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.