Package com.opencloud.rhino.cmp.codecs
Interface SleeDatatypeEncoder
-
public interface SleeDatatypeEncoder
Encoder of SLEE-specific datatypes.
Note: Rhino currently supports encoding of SLEE-specific datatypes in SBB and SBB part CMP fields only. Attempting to encode these types during the encode of any other CMP field type will result in an
UnsupportedOperationException
being thrown.- Since:
- Rhino 2.4.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
encodeActivityContextInterface(ActivityContextInterface value, DataOutput out)
Encode anActivityContextInterface
reference.void
encodeEventContext(EventContext value, DataOutput out)
Encode anEventContext
reference.void
encodeProfileLocalObject(ProfileLocalObject value, DataOutput out)
Encode aProfileLocalObject
reference.void
encodeSbbLocalObject(SbbLocalObject value, DataOutput out)
Encode anSbbLocalObject
reference.void
encodeTimerID(TimerID value, DataOutput out)
Encode aTimerID
.
-
-
-
Method Detail
-
encodeSbbLocalObject
void encodeSbbLocalObject(SbbLocalObject value, DataOutput out) throws IOException, UnsupportedOperationException
Encode an
SbbLocalObject
reference.- Parameters:
value
- theSbbLocalObject
to encode. May benull
.out
- the data output stream to encode the value to.- Throws:
IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.- Since:
- Rhino 2.4.0
-
encodeActivityContextInterface
void encodeActivityContextInterface(ActivityContextInterface value, DataOutput out) throws IOException, UnsupportedOperationException
Encode an
ActivityContextInterface
reference.- Parameters:
value
- theActivityContextInterface
to encode. May benull
.out
- the data output stream to encode the value to.- Throws:
IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.- Since:
- Rhino 2.4.0
-
encodeEventContext
void encodeEventContext(EventContext value, DataOutput out) throws IOException, UnsupportedOperationException
Encode an
EventContext
reference.- Parameters:
value
- theEventContext
to encode. May benull
.out
- the data output stream to encode the value to.- Throws:
IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.- Since:
- Rhino 2.4.0
-
encodeProfileLocalObject
void encodeProfileLocalObject(ProfileLocalObject value, DataOutput out) throws IOException, UnsupportedOperationException
Encode a
ProfileLocalObject
reference.- Parameters:
value
- theProfileLocalObject
to encode. May benull
.out
- the data output stream to encode the value to.- Throws:
IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.- Since:
- Rhino 2.4.0
-
encodeTimerID
void encodeTimerID(TimerID value, DataOutput out) throws IOException, UnsupportedOperationException
Encode a
TimerID
. While SLEE timer IDs are defined to be serialisable, this method provides a much more efficient encoding over standard Java serialisation for RhinoTimerID
objects.- Parameters:
value
- theTimerID
to encode. May benull
.out
- the data output stream to encode the value to.- Throws:
IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.- Since:
- Rhino 2.4.0
-
-