IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.event
Class NotificationEventsBuffer

java.lang.Object
  extended bycom.ibm.btt.event.Buffer
      extended bycom.ibm.btt.event.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.


Constructor Summary
NotificationEventsBuffer()
           
 
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 com.ibm.btt.event.Buffer
getAndRemove, getAndRemoveWithTimeout, put, putAndSignalOn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NotificationEventsBuffer

public NotificationEventsBuffer()
Method Detail

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.

Specified by:
calculateValueToAdd in class Buffer
Parameters:
oldValue - java.lang.Object
newValue - 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:
wk - java.lang.String
timeout - long
Returns:
Vector

getCurrentInstance

public static NotificationEventsBuffer getCurrentInstance()
Gets the _current_instance property (com.ibm.dse.clientserver.NotificationEventsBuffer) value.

Returns:
com.ibm.btt.event.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.String
event - java.util.EventObject

setCurrentInstance

public static void setCurrentInstance(NotificationEventsBuffer buffer)
Sets the _current_instance property (com.ibm.dse.clientserver.NotificationEventsBuffer) value.

Parameters:
buffer - com.ibm.btt.event.NotificationEventsBuffer

IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005