|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgr.uoa.di.madgik.grs.events.BufferEvent
gr.uoa.di.madgik.grs.events.KeyValueEvent
public class KeyValueEvent
BufferEvent
extender that propagates a simple string based key value pair as the event payload
Nested Class Summary |
---|
Nested classes/interfaces inherited from class gr.uoa.di.madgik.grs.events.BufferEvent |
---|
BufferEvent.EventSource |
Constructor Summary | |
---|---|
KeyValueEvent()
Create a new instance |
|
KeyValueEvent(java.lang.String key,
java.lang.String value)
Create a new instance |
Method Summary | |
---|---|
void |
extendDeflate(java.io.DataOutput out)
This method is implemented by BufferEvent extenders to deflate the additional information
they handle |
void |
extendInflate(java.io.DataInput in)
This method is implemented by BufferEvent extenders to inflate the additional information
they handle |
java.lang.String |
getKey()
Retrieves the payload key |
java.lang.String |
getValue()
Retrieves the payload value |
void |
setKey(java.lang.String key)
Sets the payload key |
void |
setValue(java.lang.String value)
Sets the payload value |
Methods inherited from class gr.uoa.di.madgik.grs.events.BufferEvent |
---|
deflate, getSource, inflate, inflate, setSource |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public KeyValueEvent()
public KeyValueEvent(java.lang.String key, java.lang.String value)
key
- the key of the payloadvalue
- the value of the payloadMethod Detail |
---|
public java.lang.String getKey()
public void setKey(java.lang.String key)
key
- the payload keypublic java.lang.String getValue()
public void setValue(java.lang.String value)
value
- the payload valuepublic void extendDeflate(java.io.DataOutput out) throws GRS2RecordSerializationException
BufferEvent
extenders to deflate the additional information
they handle
extendDeflate
in class BufferEvent
out
- the stream to deflate to
GRS2RecordSerializationException
- there was a problem deflating the eventBufferEvent.extendDeflate(java.io.DataOutput)
public void extendInflate(java.io.DataInput in) throws GRS2RecordSerializationException
BufferEvent
extenders to inflate the additional information
they handle
extendInflate
in class BufferEvent
in
- the stream to inflate from
GRS2RecordSerializationException
- there was a problem inflating the eventBufferEvent.extendInflate(java.io.DataInput)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |