public interface MailboxRegistration
MailboxRegistration
defines the interface through which
a client manages its registration and its notification processing.
Event mailbox clients use this interface to:
RemoteEventListener
reference that
can be registered with event generators. This listener will
then store any received events for this registration.
Modifier and Type | Method and Description |
---|---|
void |
disableDelivery()
Ceases delivery of stored notifications to the existing
target listener, if any.
|
void |
enableDelivery(RemoteEventListener target)
Initiates delivery of stored notifications to the supplied
target listener, if any. |
Lease |
getLease()
Returns the
Lease object associated
with this registration. |
RemoteEventListener |
getListener()
Returns the
RemoteEventListener associated
with this registration. |
Lease getLease()
Lease
object associated
with this registration. The client can renew or
cancel the registration with the mailbox service
through this lease object.RemoteEventListener getListener()
RemoteEventListener
associated
with this registration. This listener can then be submitted
as the RemoteEventListener
argument to an
event generator's registration method(s).RemoteEventListener
associated
with this registration.void enableDelivery(RemoteEventListener target) throws RemoteException
target
listener, if any. If a target listener
already exists, then it will be replaced with the specified
target listener. Passing null
as the
target
parameter has the same effect as calling
the disableDelivery
method.target
- The listener to be notified of stored events, if any.IllegalArgumentException
- if the supplied target
parameter is a listener object that was generated by the
mailbox service itself.RemoteException
- if there is
a communication failure between the client and the service.void disableDelivery() throws RemoteException
RemoteException
- if there is
a communication failure between the client and the service.Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.