public interface InboxSubscriber extends Subscriber
InboxSubscriber inherits most of its behavior from
Subscriber, with the following differences:
getInbox method,
and send it in a message to other program instances.
Other programs that receive the inbox
object can efficiently send one-to-one messages to the inbox
subscriber using the method
Publisher.sendToInbox.
Closing the inbox subscriber destroys its
inbox. An inbox subscriber remains inert until you add it to an event queue.
To create an inbox subscriber object, call
Realm.createInboxSubscriber.
Programs must define a callback method in a class
that implements the SubscriberListener interface.
Customers do not implement this interface.
PROPERTY_BOOL_EXPLICIT_ACK, PROPERTY_BOOL_RELEASE_MSGS_TO_CALLBACK, PROPERTY_DOUBLE_PERSISTENCE_RETRY_DURATION, PROPERTY_LONG_PREFETCH_SIZE, PROPERTY_STRING_DURABLE_NAME, PROPERTY_STRING_KEY_FIELD_NAME, PROPERTY_STRING_LABEL, PROPERTY_STRING_NAME| Modifier and Type | Method and Description |
|---|---|
Inbox |
getInbox()
Get the inbox object from an inbox subscriber.
|
acknowledge, closeInbox getInbox()
Messages can carry this inbox object to other programs
(see Message.setInbox).
Programs that receive that inbox can send a stream of
one-to-one messages to the inbox subscriber.
Your program must not explicitly destroy the inbox because the inbox subscriber owns it.
getInbox in interface Subscriber