public class FXBlotterItemPublisher extends Object
This class is responsible for publishing blotter items. Instances of this class are created by calling
FXBlotterAdapter.createBlotterItemPublisher(FXBlotter, FXBlotterItemProvider)
.
This publisher only publishes messages pertaining to record items the belong the Blotter. A different publisher FXBlotterPublisher
must be created and used to publish the container itself.
You should create and use instances of this item publisher if you have created and are using the non-cached blotter publisher from
FXBlotterAdapter.createBlotterPublisher(FXBlotter, FXBlotterProvider)
.
Constructor and Description |
---|
FXBlotterItemPublisher(CachedPublisher publisher,
FXBlotterItemMessageFactory messageFactory)
Creates a new FXBlotterItemPublisher.
|
Modifier and Type | Method and Description |
---|---|
FXBlotterItemMessageFactory |
getMessageFactory()
Returns the message factory to be used to create the blotter items.
|
void |
publish(FXBlotterItemMessage message)
Should be used to publish the
FXBlotterItemMessage , which represents a record in the blotter, and all
its field data. |
void |
sendNotFound(String subject)
Should be called when no data is found for a requested blotter item subject.
|
public FXBlotterItemPublisher(CachedPublisher publisher, FXBlotterItemMessageFactory messageFactory)
publisher
- The CachedPublisher
to use to publish the items.messageFactory
- The FXBlotterItemMessageFactory
to use for creating the items.public FXBlotterItemMessageFactory getMessageFactory()
public void publish(FXBlotterItemMessage message)
FXBlotterItemMessage
, which represents a record in the blotter, and all
its field data.message
- The object representing a record item in the blotter.public void sendNotFound(String subject)
subject
- The subject for which no data was found.Copyright © 2015 Caplin Systems.