com.ibm.dse.cs.servlet
Class SendEventsBuffer
java.lang.Object
|
+--com.ibm.dse.cs.servlet.Buffer
|
+--com.ibm.dse.cs.servlet.SendEventsBuffer
- public class SendEventsBuffer
- extends Buffer
The SendEventsBuffer class is used to implement a remote operation execution.
It is used to store the results of an asynchronous request. The received data
from the server is stored for each request ID. It is located on the client side.
Method Summary |
java.lang.Object |
calculateValueToAdd(java.lang.Object oldValue,
java.lang.Object newValue)
Returns the second value. |
java.lang.Object |
get(java.lang.Integer id)
Returns the value to which the specified id is mapped in this buffer. |
static SendEventsBuffer |
getCurrentInstance()
Gets the _current_instance property (om.ibm.dse.clientserver.SendEventsBuffer) value. |
void |
put(java.lang.Integer id,
java.lang.Object data)
Maps the specified id to the specified value in this buffer. |
static void |
setCurrentInstance(SendEventsBuffer buffer)
Sets the _current_instance property (com.ibm.dse.clientserver.SendEventsBuffer) value. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
SendEventsBuffer
public SendEventsBuffer()
calculateValueToAdd
public java.lang.Object calculateValueToAdd(java.lang.Object oldValue,
java.lang.Object newValue)
- Returns the second value.
- Overrides:
- calculateValueToAdd in class Buffer
- Parameters:
oldValue
- ObjectnewValue
- Object
get
public java.lang.Object get(java.lang.Integer id)
- Returns the value to which the specified id is mapped in this buffer.
If the id is not mapped to any value waits.
- Parameters:
id
- java.lang.Integer- Returns:
- java.lang.Object
getCurrentInstance
public static SendEventsBuffer getCurrentInstance()
- Gets the _current_instance property (om.ibm.dse.clientserver.SendEventsBuffer) value.
- Returns:
- com.ibm.dse.clientserver.SendEventsBuffer
put
public void put(java.lang.Integer id,
java.lang.Object data)
- Maps the specified id to the specified value in this buffer.
- Parameters:
id
- java.lang.Integerdata
- java.lang.Object
setCurrentInstance
public static void setCurrentInstance(SendEventsBuffer buffer)
- Sets the _current_instance property (com.ibm.dse.clientserver.SendEventsBuffer) value.
- Parameters:
buffer
- com.ibm.dse.clientserver.SendEventsBuffer