public class KeyValueEvent extends BufferEvent
BufferEvent extender that propagates a simple string based key value pair as the event payloadBufferEvent.EventSource| Constructor and Description |
|---|
KeyValueEvent()
Create a new instance
|
KeyValueEvent(String key,
String value)
Create a new instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
extendDeflate(DataOutput out)
This method is implemented by
BufferEvent extenders to deflate the additional information
they handle |
void |
extendFromXML(Element element) |
void |
extendInflate(DataInput in)
This method is implemented by
BufferEvent extenders to inflate the additional information
they handle |
void |
extendToXML(Document doc,
Element element) |
String |
getKey()
Retrieves the payload key
|
String |
getValue()
Retrieves the payload value
|
void |
setKey(String key)
Sets the payload key
|
void |
setValue(String value)
Sets the payload value
|
public String getKey()
public void setKey(String key)
key - the payload keypublic String getValue()
public void setValue(String value)
value - the payload valuepublic void extendToXML(Document doc, Element element) throws GRS2RecordSerializationException
extendToXML in class BufferEventGRS2RecordSerializationExceptionpublic void extendFromXML(Element element) throws GRS2RecordSerializationException
extendFromXML in class BufferEventGRS2RecordSerializationExceptionpublic void extendDeflate(DataOutput out) throws GRS2RecordSerializationException
BufferEvent extenders to deflate the additional information
they handleextendDeflate in class BufferEventout - the stream to deflate toGRS2RecordSerializationException - there was a problem deflating the eventBufferEvent.extendDeflate(java.io.DataOutput)public void extendInflate(DataInput in) throws GRS2RecordSerializationException
BufferEvent extenders to inflate the additional information
they handleextendInflate in class BufferEventin - the stream to inflate fromGRS2RecordSerializationException - there was a problem inflating the eventBufferEvent.extendInflate(java.io.DataInput)Copyright © 2014. All Rights Reserved.