public interface SOMReceiver extends SOMEndPoint
Modifier and Type | Interface and Description |
---|---|
static class |
SOMReceiver.Client
Client.
|
static class |
SOMReceiver.Server
Server.
|
SOMEndPoint.Abstract
Modifier and Type | Method and Description |
---|---|
boolean |
commit()
Commits uncommitted messages.
|
Optional<QueueInfo> |
getInfo()
Gets the queue info.
|
long |
purge()
Purges the queue.
|
Serializable[] |
receive(int limit,
long timeout)
Receives messages.
|
boolean |
rollback()
Rolls back uncommitted messages
|
close, getException, getServer, getServerURI, getSOMName, isClosed, isOpen, isRemote, isServer, open, tearDown
@CheckReturnValue boolean commit()
@Nonnull @CheckReturnValue Optional<QueueInfo> getInfo()
@CheckReturnValue long purge()
@Nullable @CheckReturnValue Serializable[] receive(int limit, long timeout)
limit
- The maximum number of messages.timeout
- A time limit in millis to wait for the first message
(negative for infinite).@CheckReturnValue boolean rollback()
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.