Errai 3.0.1-SNAPSHOT

org.jboss.errai.bus.server.api
Interface SessionProvider<T>

All Known Implementing Classes:
HttpSessionProvider

public interface SessionProvider<T>

Allows retrieval and creation of QueueSessions for a specific type of communication channel.


Method Summary
 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.
 

Method Detail

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.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.