@Deprecated public class EventSessionFactory extends Object
EventSessionConfig config = new EventSessionConfig();
config.setFifo(true);
config.setBatch(100, 20000); // size = 100 , time = 20000ms
IJSpace space = ...
EventSessionFactory factory = EventSessionFactory.getFactory(space);
DataEventSession session = factory.newDataEventSession(config);
Object template = ...
RemoteEventListener listener = ...
session.addListener(template, listener);
DataEventSession
,
EventSessionConfig
Modifier and Type | Method and Description |
---|---|
static EventSessionFactory |
getFactory(IJSpace space)
Deprecated.
Retrieves the EventSessionFactory according to the space.
|
DataEventSession |
newDataEventSession()
Deprecated.
creates a new
DataEventSession using the default configuration. |
DataEventSession |
newDataEventSession(EventSessionConfig config)
Deprecated.
creates a new
DataEventSession using the specified configuration. |
static DataEventSession |
newDataSession(IJSpace space)
Deprecated.
creates a new
DataEventSession using the specified space and default configuration. |
static DataEventSession |
newDataSession(IJSpace space,
EventSessionConfig config)
Deprecated.
creates a new
DataEventSession using the specified space and configuration. |
public static EventSessionFactory getFactory(IJSpace space)
space
- the associated spacepublic static DataEventSession newDataSession(IJSpace space) throws RemoteException
DataEventSession
using the specified space and default configuration.space
- The space which the session will listen to.RemoteException
- when connection to the space fails.public static DataEventSession newDataSession(IJSpace space, EventSessionConfig config) throws RemoteException
DataEventSession
using the specified space and configuration.space
- The space which the session will listen to.config
- A set of configuration settings used to configure the session.RemoteException
- when connection to the space fails.public DataEventSession newDataEventSession() throws RemoteException
DataEventSession
using the default configuration.RemoteException
- when connection to the space fails.public DataEventSession newDataEventSession(EventSessionConfig config) throws RemoteException
DataEventSession
using the specified configuration.config
- A set of configuration settings used to configure the session.RemoteException
- when connection to the space fails.Copyright © GigaSpaces.