public interface SOMSubscriber extends SOMEndPoint
Modifier and Type | Interface and Description |
---|---|
static class |
SOMSubscriber.Client
Client.
|
static class |
SOMSubscriber.Server
Server.
|
SOMEndPoint.Abstract
Modifier and Type | Method and Description |
---|---|
Optional<TopicInfo> |
getInfo()
Gets the topic info.
|
Serializable[] |
receive(int limit,
long timeout)
Receives messages.
|
close, getException, getServer, getServerURI, getSOMName, isClosed, isOpen, isRemote, isServer, open, tearDown
@Nonnull @CheckReturnValue Optional<TopicInfo> getInfo()
@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).Copyright © 2003-2019 Serge Brisson. All Rights Reserved.