com.ibm.dse.cs.servlet
Class NotificationEventsBuffer
java.lang.Object
|
+--com.ibm.dse.cs.servlet.Buffer
|
+--com.ibm.dse.cs.servlet.NotificationEventsBuffer
- public class NotificationEventsBuffer
- extends Buffer
The NotificationEventsBuffer class is used to implement event notifications from the server to the client.
For each workstation ID, it stores the list of events to be sent from the server to the client.
It is located on the server side.
Method Summary |
java.lang.Object |
calculateValueToAdd(java.lang.Object oldValue,
java.lang.Object newValue)
Adds the second parameter to the first parameter and returns it. |
java.util.Vector |
get(java.lang.String wk,
long timeout)
Returns the value to which the specified key is mapped in this buffer. |
static NotificationEventsBuffer |
getCurrentInstance()
Gets the _current_instance property (com.ibm.dse.clientserver.NotificationEventsBuffer) value. |
void |
put(java.lang.String wk,
java.util.EventObject event)
Maps the specified key to the specified value in this buffer. |
static void |
setCurrentInstance(NotificationEventsBuffer buffer)
Sets the _current_instance property (com.ibm.dse.clientserver.NotificationEventsBuffer) value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
NotificationEventsBuffer
public NotificationEventsBuffer()
calculateValueToAdd
public java.lang.Object calculateValueToAdd(java.lang.Object oldValue,
java.lang.Object newValue)
- Adds the second parameter to the first parameter and returns it.
- Overrides:
- calculateValueToAdd in class Buffer
- Parameters:
oldValue
- java.lang.ObjectnewValue
- java.lang.Object- Returns:
- java.lang.Object
get
public java.util.Vector get(java.lang.String wk,
long timeout)
- Returns the value to which the specified key is mapped in this buffer.
If the key is not mapped to any value waits with a timeout.
- Parameters:
key
- java.lang.Stringtimeout
- long- Returns:
- Vector
getCurrentInstance
public static NotificationEventsBuffer getCurrentInstance()
- Gets the _current_instance property (com.ibm.dse.clientserver.NotificationEventsBuffer) value.
- Returns:
- com.ibm.dse.clientserver.NotificationEventsBuffer
put
public void put(java.lang.String wk,
java.util.EventObject event)
- Maps the specified key to the specified value in this buffer.
- Parameters:
wk
- java.lang.Stringevent
- EventObject
setCurrentInstance
public static void setCurrentInstance(NotificationEventsBuffer buffer)
- Sets the _current_instance property (com.ibm.dse.clientserver.NotificationEventsBuffer) value.
- Parameters:
buffer
- com.ibm.dse.clientserver.NotificationEventsBuffer