public static final class TopicProxy.Subscriber extends TopicProxy implements SubscriberSession
Modifier and Type | Class and Description |
---|---|
static class |
TopicProxy.Subscriber.Builder
Builder.
|
TopicProxy.Publisher, TopicProxy.Subscriber
SOMProxy.ContextProperties
SessionProxy.Listener, SessionProxy.SessionConnectVetoException
Session.ConnectionMode
PASSWORD_PROPERTY, TIMEOUT_PROPERTY, USER_PROPERTY
Modifier and Type | Method and Description |
---|---|
protected Session |
createSession()
Creates a session.
|
static TopicProxy.Subscriber.Builder |
newBuilder()
Returns a new builder.
|
Serializable[] |
receive(int limit,
long timeout)
Receives messages.
|
protected String |
sessionMode()
Returns some session mode identifying text.
|
getInfo
close, confirmTimeout, connect, disconnect, getSOMName, isClosed
getClientName, getConnectionMode, getContext, getContextUUID, getFactory, getServerName, getServerURI, getSession, getThisLogger, hasLoginInfo, isConnected, isPrivate, isRemote, lockConnect, lockConnectInterruptibly, login, logout, sessionException, tearDown, unlockConnect
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
getConnectionMode, login, logout
@Nonnull @CheckReturnValue public static TopicProxy.Subscriber.Builder newBuilder()
public Serializable[] receive(int limit, long timeout) throws SessionException
receive
in interface SubscriberSession
limit
- The maximum number of messages.timeout
- A time limit in millis to wait for the first message
(negative for infinite).SessionException
- From session security check.protected Session createSession() throws RemoteException, SessionException
createSession
in class TopicProxy
RemoteException
- From RMI.SessionException
- When session creation fails.protected String sessionMode()
sessionMode
in class SessionProxy
Copyright © 2003-2019 Serge Brisson. All Rights Reserved.