|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.dxfeed.api.DXPublisher
public abstract class DXPublisher
Constructor Summary | |
---|---|
DXPublisher()
|
Method Summary | ||
---|---|---|
abstract
|
getSubscription(java.lang.Class<T> eventType)
|
|
abstract
|
publishEvents(java.util.Collection<T> events)
Publishes events to the corresponding feed. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DXPublisher()
Method Detail |
---|
public abstract <T> void publishEvents(java.util.Collection<T> events)
endpoint
of this publisher has
role
of DXEndpoint.Role.PUBLISHER
and it is connected, the
published events will be delivered to the remote endpoints. Local feed
will
always receive published events.
This method serializes all events into internal representation, so that the instance of the collection as
well as the instances of events can be reused after invocation of this method returns.
public abstract <T> ObservableSubscription<T> getSubscription(java.lang.Class<T> eventType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |