com.dxfeed.api
Class DXPublisher

java.lang.Object
  extended by com.dxfeed.api.DXPublisher

public abstract class DXPublisher
extends java.lang.Object


Constructor Summary
DXPublisher()
           
 
Method Summary
abstract
<T> ObservableSubscription<T>
getSubscription(java.lang.Class<T> eventType)
           
abstract
<T> void
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

DXPublisher

public DXPublisher()
Method Detail

publishEvents

public abstract <T> void publishEvents(java.util.Collection<T> events)
Publishes events to the corresponding feed. If the 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.


getSubscription

public abstract <T> ObservableSubscription<T> getSubscription(java.lang.Class<T> eventType)