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, toStringequals, hashCode, opengetClientName, getConnectionMode, getIdentity, getSessionFactory, getThisLogger, getUser, isClosed, login, logout, open, securityCheck, setLogID, setUser, unreferencedgetConnectionMode, login, logoutpublic void close()
close in interface SOMSessionclose in class ExportedSessionImplpublic void commit()
throws SessionException
commit in interface ReceiverSessionSessionException - From session security check.public long purge()
throws SessionException
purge in interface ReceiverSessionSessionException - From session security check.public Serializable[] receive(int limit,
long timeout)
throws SessionException
receive in interface ReceiverSessionlimit - 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 ReceiverSessionSessionException - From session security check.protected String getType()
getType in class SOMSessionImplCopyright © 2003-2019 Serge Brisson. All Rights Reserved.