public class SubscriberSessionImpl extends SOMSessionImpl implements SubscriberSession
Session.ConnectionMode
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the session.
|
protected String |
getType()
Gets the session type.
|
boolean |
isClosed()
Asks if the service is closed.
|
Serializable[] |
receive(int limit,
long timeout)
Receives messages.
|
adjustTimeout, toString
equals, hashCode, open
getClientName, getConnectionMode, getIdentity, getSessionFactory, getThisLogger, getUser, login, logout, open, securityCheck, setLogID, setUser, unreferenced
getConnectionMode, login, logout
public void close()
close
in interface SOMSession
close
in class ExportedSessionImpl
public boolean isClosed()
isClosed
in class SessionImpl
public Serializable[] receive(int limit, long timeout) throws UnauthorizedAccessException, SessionException
receive
in interface SubscriberSession
limit
- The maximum number of messages.timeout
- A time limit in millis to wait for the first message
(negative for infinite).SessionException
- From session security check.UnauthorizedAccessException
protected String getType()
getType
in class SOMSessionImpl
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.