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.
Modifier and Type | Method and Description |
---|---|
void |
encodeActivityContextInterface(ActivityContextInterface value,
DataOutput out)
Encode an
ActivityContextInterface reference. |
void |
encodeEventContext(EventContext value,
DataOutput out)
Encode an
EventContext reference. |
void |
encodeProfileLocalObject(ProfileLocalObject value,
DataOutput out)
Encode a
ProfileLocalObject reference. |
void |
encodeSbbLocalObject(SbbLocalObject value,
DataOutput out)
Encode an
SbbLocalObject reference. |
void |
encodeTimerID(TimerID value,
DataOutput out)
Encode a
TimerID . |
void encodeSbbLocalObject(SbbLocalObject value, DataOutput out) throws IOException, UnsupportedOperationException
Encode an SbbLocalObject
reference.
value
- the SbbLocalObject
to encode.
May be null
.out
- the data output stream to encode the value to.IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.void encodeActivityContextInterface(ActivityContextInterface value, DataOutput out) throws IOException, UnsupportedOperationException
Encode an ActivityContextInterface
reference.
value
- the ActivityContextInterface
to encode.
May be null
.out
- the data output stream to encode the value to.IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.void encodeEventContext(EventContext value, DataOutput out) throws IOException, UnsupportedOperationException
Encode an EventContext
reference.
value
- the EventContext
to encode.
May be null
.out
- the data output stream to encode the value to.IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.void encodeProfileLocalObject(ProfileLocalObject value, DataOutput out) throws IOException, UnsupportedOperationException
Encode a ProfileLocalObject
reference.
value
- the ProfileLocalObject
to encode.
May be null
.out
- the data output stream to encode the value to.IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.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 Rhino TimerID
objects.
value
- the TimerID
to encode.
May be null
.out
- the data output stream to encode the value to.IOException
- if an I/O error occurs.UnsupportedOperationException
- if the method is invoked while encoding an unsupported CMP field type.