GigaSpaces XAP 7.0 API

com.gigaspaces.events
Interface EventSession

All Known Subinterfaces:
DataEventSession

public interface EventSession

a common interface for all EventSession types
a session is a stateful service used to register event listeners to the space
the state of the session contains the bounded transaction (if any)
and a set of configuration parameters such as the communication protocol
used to convey the events and whether of not to use FIFO order
the session can be used to register multiple listeners that share the same configuration.
the session provides methods for retrieving the bounded
entities of the session - the transaction and the configuration object.
the interface also provides a lifecycle management support methods.

Since:
6.0
Version:
1.0
Author:
asy ronen
See Also:
EventSessionConfig

Method Summary
 void close()
          closes the session and deregister all listeners.
 EventSessionConfig getSessionConfig()
          Retrieves the bounded configuration object.
 IJSpace getSpace()
          returns the space that the session is attached to.
 net.jini.core.transaction.Transaction getTransaction()
          Retrieves the bounded transaction
 

Method Detail

getTransaction

net.jini.core.transaction.Transaction getTransaction()
Retrieves the bounded transaction

Returns:
the transaction

getSessionConfig

EventSessionConfig getSessionConfig()
Retrieves the bounded configuration object.

Returns:
the EventSessionConfig object.

getSpace

IJSpace getSpace()
returns the space that the session is attached to.

Returns:

close

void close()
           throws RemoteException,
                  net.jini.core.lease.UnknownLeaseException
closes the session and deregister all listeners.

Throws:
RemoteException - if the remove space failed to remove the notification registration.
net.jini.core.lease.UnknownLeaseException - if the listeners lease has expired.

GigaSpaces XAP 7.0 API

Copyright © GigaSpaces.