public interface ReceiverSession extends SOMSession
Session.ConnectionMode
Modifier and Type | Method and Description |
---|---|
void |
commit()
Commits uncommitted messages.
|
long |
purge()
Purges the queue.
|
Serializable[] |
receive(int limit,
long timeout)
Receives messages.
|
void |
rollback()
Rolls back uncommitted messages.
|
close
getConnectionMode, login, logout
void commit() throws RemoteException, SessionException
RemoteException
- From RMI RunTime.SessionException
- From session security check.@Nonnegative long purge() throws RemoteException, SessionException
RemoteException
- From RMI RunTime.SessionException
- From session security check.@Nonnull @CheckReturnValue Serializable[] receive(@Nonnegative int limit, long timeout) throws RemoteException, SessionException
limit
- The maximum number of messages.timeout
- A time limit in millis to wait for the first message
(negative for infinite).RemoteException
- From RMI RunTime.SessionException
- From session security check.void rollback() throws RemoteException, SessionException
RemoteException
- From RMI RunTime.SessionException
- From session security check.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.