|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for subscription hanle and its associated buffers.
Method Summary | |
void |
addSubscriber(Id subId,
java.lang.Object policy,
Buffer buffer)
Add a subscriber with specified policy. |
BufferedEvent |
getBufferedEvent()
Return the next event from buffers in this handle. |
Id |
getPubId()
Return the publisher ID of this handle. |
java.lang.Object |
getSubKey()
Return the key of subscription, ID or link address. |
boolean |
hasSubscriber(Id subId)
Return whether this handle contains specified subscriber. |
boolean |
isSuspended()
Return whether this handle is suspended. |
void |
pack()
Pack the buffers in this handle. |
void |
putEvent(Id pubId,
Id subId,
Event evt)
Put a subscribed event into this handle. |
void |
putEvents(Id pubId,
Id subId,
Buffer buffer)
Put a list of events into this handle. |
Buffer |
removeSubscriber(Id subId)
Remove an existing subscriber and return its associated buffer. |
void |
resume()
Resume all buffers in this handle to output. |
int |
size()
Total number of events in this handle. |
void |
suspend()
Suspend all buffers in this handle from output. |
Method Detail |
public int size()
public Id getPubId()
public java.lang.Object getSubKey()
public boolean hasSubscriber(Id subId)
public void addSubscriber(Id subId, java.lang.Object policy, Buffer buffer)
public Buffer removeSubscriber(Id subId)
public void putEvent(Id pubId, Id subId, Event evt) throws BufferFullException
BufferFullException
public void putEvents(Id pubId, Id subId, Buffer buffer) throws BufferFullException
BufferFullException
public BufferedEvent getBufferedEvent()
public void pack()
public void suspend()
public void resume()
public boolean isSuspended()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |