org.jboss.errai.bus.server.api
Interface SessionProvider<T>
- All Known Implementing Classes:
- HttpSessionProvider
public interface SessionProvider<T>
Allows retrieval and creation of QueueSession
s for a specific type of communication channel.
createOrGetSession
QueueSession createOrGetSession(T externSessRef,
String remoteQueueId)
- Looks up or creates the
QueueSession
that identifies a communication channel with a specific queue in a
specific remote Errai Bus.
- Parameters:
externSessRef
- the session object (for example, an HttpSession
) that identifies a communications link to a remote
Errai Bus.remoteQueueId
- the ID of the queue in the remote bus
- Returns:
- the QueueSession that identifies the communication link to the given remote queue in the given remote bus.
If none already exists, one is created.
Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.