T - public interface AcsEventPublisher<T>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AcsEventPublisher.EventProcessingHandler<U>
Handler for optional callbacks to the event publishing client,
which allows notifying the client of success or failure with publishing the event(s).
|
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnect this Publisher from the Notification Channel.
|
void |
enableEventQueue(int queueSize,
AcsEventPublisher.EventProcessingHandler<T> handler)
Deprecated.
|
int |
getEventBufferSize() |
boolean |
increaseEventBufferSize(int bufferSize)
Increase the event buffer size
|
void |
publishEvent(T customStruct)
Publishes an event through the Notification Channel to which
this publisher is connected to.
|
void |
setEventProcessingHandler(AcsEventPublisher.EventProcessingHandler<T> handler)
Sets the event processing handler
|
void publishEvent(T customStruct) throws AcsJException
customStruct - The structure to send through the Notification ChannelAcsJException - In case of any failure, including if the publisher
is not yet connected (or has been disconnected) to the Notification Channel.void disconnect()
throws AcsJIllegalStateEventEx
AcsJIllegalStateEventEx - If the current Publisher is already disconnected@Deprecated
void enableEventQueue(int queueSize,
AcsEventPublisher.EventProcessingHandler<T> handler)
increaseEventBufferSize(int) and setEventProcessingHandler(alma.acs.nc.AcsEventPublisher.EventProcessingHandler<T>) instead
As of ACS 10.1, only a missing NotifyService as diagnosed through
a org.omg.CORBA.TRANSIENT exception will cause the publisher
to store an event in this queue for later re-sending.
queueSize - Number of events that this queue should store.
The choice is a tradeoff between memory use and data loss.handler - The handler that should be notified by the publisher.boolean increaseEventBufferSize(int bufferSize)
bufferSize - new event buffer sizeint getEventBufferSize()
void setEventProcessingHandler(AcsEventPublisher.EventProcessingHandler<T> handler)
handler - event processing handler