public class ReceiverSessionImpl extends SOMSessionImpl implements ReceiverSession
Session.ConnectionMode
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the session.
|
void |
commit()
Commits uncommitted messages.
|
protected String |
getType()
Gets the session type.
|
long |
purge()
Purges the queue.
|
Serializable[] |
receive(int limit,
long timeout)
Receives messages.
|
void |
rollback()
Rolls back uncommitted messages.
|
adjustTimeout, toString
equals, hashCode, open
getClientName, getConnectionMode, getIdentity, getSessionFactory, getThisLogger, getUser, isClosed, login, logout, open, securityCheck, setLogID, setUser, unreferenced
getConnectionMode, login, logout
public void close()
close
in interface SOMSession
close
in class ExportedSessionImpl
public void commit() throws SessionException
commit
in interface ReceiverSession
SessionException
- From session security check.public long purge() throws SessionException
purge
in interface ReceiverSession
SessionException
- From session security check.public Serializable[] receive(int limit, long timeout) throws SessionException
receive
in interface ReceiverSession
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.public void rollback() throws SessionException
rollback
in interface ReceiverSession
SessionException
- From session security check.protected String getType()
getType
in class SOMSessionImpl
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.