class Notifier extends Object implements TimeConstants
JavaSpace.notify(net.jini.core.entry.Entry, net.jini.core.transaction.Transaction, net.jini.core.event.RemoteEventListener, long, java.rmi.MarshalledObject)
,
OutriggerServerImpl.notify(com.sun.jini.outrigger.EntryRep, net.jini.core.transaction.Transaction, net.jini.core.event.RemoteEventListener, long, java.rmi.MarshalledObject)
Modifier and Type | Class and Description |
---|---|
private class |
Notifier.NotifyTask
A task that represent a notification of matching a particular
template under a given transaction.
|
Modifier and Type | Field and Description |
---|---|
private static long[] |
delays |
private static Logger |
logger
Logger for logging event related information
|
private static int |
MAX_ATTEMPTS |
private static long |
MAX_TIME |
private TaskManager |
pending
pending notifications tasks
|
private ProxyPreparer |
recoveredListenerPreparer
Proxy preparer to use on recovered listeners
|
private JavaSpace |
source
The object to use for the
source when creating
events. |
private WakeupManager |
wakeupMgr
wakeup manager for
NotifyTask |
DAYS, HOURS, MINUTES, SECONDS
Constructor and Description |
---|
Notifier(JavaSpace source,
ProxyPreparer recoveredListenerPreparer,
Configuration config)
Create a notifier connected to the given
space . |
Modifier and Type | Method and Description |
---|---|
(package private) void |
enqueueDelivery(EventSender sender)
Queue up an event for delivery.
|
(package private) void |
terminate()
Terminate the notifier, shutting down any threads
it has running.
|
private final JavaSpace source
source
when creating
events.private final ProxyPreparer recoveredListenerPreparer
private final WakeupManager wakeupMgr
NotifyTask
private final TaskManager pending
private static final int MAX_ATTEMPTS
private static final Logger logger
private static final long MAX_TIME
private static final long[] delays
Notifier(JavaSpace source, ProxyPreparer recoveredListenerPreparer, Configuration config) throws ConfigurationException
space
.source
- the value to use for the source
in
remote event objects.recoveredListenerPreparer
- ProxyPreparer
to
apply to recovered listeners.config
- a source of configuration data.aConfigurationException
- if there is a problem
with the passed configuration.NullPointerException
- if source
or
config
arguments are null
.void terminate()
void enqueueDelivery(EventSender sender)
sender
- An object that on request will
attempt to deliver its event
to the associated listener.NullPointerException
- if sender
is
null
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.