public class ReceiverWrapper extends QueueServerWrapper
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the receiver.
|
void |
commit()
Commits uncommitted messages.
|
long |
purge()
Purges the queue.
|
Serializable[] |
receive(int limit,
long timeout)
Receives messages.
|
void |
rollback()
Rolls back uncommitted messages.
|
getInfo, getQueueServer, getServer, isDirtycloseServer, getServerName, isServerClosed, tearDownServer, toStringpublic void close()
public void commit()
throws ServiceClosedException
ServiceClosedException - When the service is closed.public long purge()
throws ServiceClosedException
ServiceClosedException - When the service is closed.@Nonnull
@CheckReturnValue
public Serializable[] receive(int limit,
long timeout)
throws ServiceClosedException
limit - The maximum number of messages.timeout - A time limit in millis to wait for the first message
(negative for infinite).ServiceClosedException - When the service is closed.public void rollback()
throws ServiceClosedException
ServiceClosedException - When the service is closed.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.