| Package | Description |
|---|---|
| net.sf.eBus.client |
This package contains the top-level eBus API which
applications use to interact with eBus.
|
| Modifier and Type | Interface and Description |
|---|---|
protected static interface |
EMultiFeed.SubordinateFeedFactory<R extends EObject,F extends net.sf.eBus.client.ESingleFeed>
This interface is used by
EMultiFeed to
instantiate a new subordinate feed for a multi-key feed. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
EPublisher
Classes wanting to send eBus notifications need to implement
this interface.
|
interface |
EReplier
Classes able to reply to eBus requests must implement this
interface.
|
interface |
ERequestor
Classes wanting to send eBus requests must implement this
interface.
|
interface |
ESubscriber
Classes wanting to receive eBus notification messages need to
implement this interface.
|
| Modifier and Type | Class and Description |
|---|---|
class |
ERemoteApp
This class encapsulates a connection between eBus
applications.
|
class |
EServer
Accepts new connections to this eBus application.
|
| Modifier and Type | Method and Description |
|---|---|
protected static <R extends EObject,C extends EMessage,F extends net.sf.eBus.client.ESingleFeed,M extends EMultiFeed<C,F>> |
EMultiFeed.openList(R client,
Class<? extends C> mc,
List<String> subjects,
EFeed.FeedScope scope,
ECondition condition,
EMultiFeed.SubordinateFeedFactory<R,F> subFactory,
EMultiFeed.MultiFeedFactory<M,C,F> multiFactory)
Returns a new, opened multi-key feed for the given
parameters.
|
protected static <R extends EObject,C extends EMessage,F extends net.sf.eBus.client.ESingleFeed,M extends EMultiFeed<C,F>> |
EMultiFeed.openQuery(R client,
Class<? extends C> mc,
Pattern query,
EFeed.FeedScope scope,
ECondition condition,
EMultiFeed.SubordinateFeedFactory<R,F> subFactory,
EMultiFeed.MultiFeedFactory<M,C,F> multiFactory)
Returns a new, opened multi-key feed for the given message
class and subject regular expression query.
|
| Modifier and Type | Method and Description |
|---|---|
EObject |
EClient.target()
Returns the target client.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
EClient.dispatch(Runnable task,
EObject client)
Posts
task to client's task queue (this is
the same task queue used for eBus message delivery). |
static EClient |
EClient.findOrCreateClient(EObject client,
EClient.ClientLocation location)
Returns the eBus proxy for the given eBus client instance.
|
static void |
EFeed.register(EObject client)
Registers the application object
client with
eBus, assigning the client to the dispatcher configured
for the client's class, and using the defined
startup() and shutdown()
methods. |
static void |
EFeed.register(EObject client,
String dispatcherName)
Registers the application object
client with
eBus, assigning client to the named dispatcher. |
static void |
EFeed.register(EObject client,
String dispatcherName,
Runnable startCb,
Runnable shutdownCb)
Registers the application object
client with
eBus, assigning client to the named dispatcher. |
static void |
EFeed.shutdown(EObject client)
Calls the shutdown method
registered
with eBus if-and-only-if the application object is
currently started. |
static void |
EFeed.startup(EObject client)
Calls the start-up method
registered
with eBus if-and-only-if the application object is not
currently started. |
| Modifier and Type | Method and Description |
|---|---|
static void |
EFeed.shutdown(List<? extends EObject> clients)
Call the registered shutdown method for each of the
application objects in
clients if-and-only-if
the application object is currently started. |
static void |
EFeed.startup(List<? extends EObject> clients)
Call the registered start-up method for each of the
application objects in
clients if-and-only-if
the application object is not currently started. |
Copyright © 2019. All rights reserved.