public static final class SOMReceiver.Client extends SOMEndPoint.Abstract implements SOMReceiver
SOMReceiver.Client, SOMReceiver.ServerSOMEndPoint.Abstract| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes.
|
boolean |
commit()
Commits uncommitted messages.
|
Optional<QueueInfo> |
getInfo()
Gets the queue info.
|
Optional<SOMServerImpl> |
getServer()
Gets the server.
|
Optional<URI> |
getServerURI()
Gets the server URI.
|
String |
getSOMName()
Gets the SOM name.
|
boolean |
isClosed()
Asks if closed.
|
boolean |
isOpen()
Asks if open.
|
boolean |
isRemote()
Asks if remote.
|
boolean |
isServer()
Asks if server.
|
boolean |
open()
Opens.
|
long |
purge()
Purges the queue.
|
Serializable[] |
receive(int limit,
long timeout)
Receives messages.
|
boolean |
rollback()
Rolls back uncommitted messages
|
void |
tearDown()
Tears down.
|
String |
toString() |
clearException, getException, setExceptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetExceptionpublic void close()
close in interface SOMEndPointpublic boolean commit()
commit in interface SOMReceiverpublic Optional<QueueInfo> getInfo()
getInfo in interface SOMReceiverpublic String getSOMName()
getSOMName in interface SOMEndPointpublic Optional<SOMServerImpl> getServer()
getServer in interface SOMEndPointpublic Optional<URI> getServerURI()
getServerURI in interface SOMEndPointpublic boolean isClosed()
isClosed in interface SOMEndPointpublic boolean isOpen()
isOpen in interface SOMEndPointpublic boolean isRemote()
isRemote in interface SOMEndPointpublic boolean isServer()
isServer in interface SOMEndPointpublic boolean open()
open in interface SOMEndPointpublic long purge()
purge in interface SOMReceiverpublic Serializable[] receive(int limit,
long timeout)
receive in interface SOMReceiverlimit - The maximum number of messages.timeout - A time limit in millis to wait for the first message
(negative for infinite).public boolean rollback()
rollback in interface SOMReceiverpublic void tearDown()
tearDown in interface SOMEndPointpublic String toString()
toString in class ObjectCopyright © 2003-2019 Serge Brisson. All Rights Reserved.