public final class CurrentHolder extends Object implements Streamable
PICurrent)
is merely a slot table, the slots of which are used by each service to
transfer their context data between their context and the request's or
reply's service context. Each service which wishes to use PICurrent
reserves a slot or slots at initialization time and uses those slots
during the processing of requests and replies.
Before an invocation is made, PICurrent is obtained via a call to
ORB.resolve_initial_references( "PICurrent" ). From within
the interception points, the data on PICurrent that has moved from the
thread scope to the request scope is available via the
get_slot operation on the RequestInfo object.
A PICurrent can still be obtained via
resolve_initial_references, but that is the Interceptor's
thread scope PICurrent.
| Constructor and Description |
|---|
CurrentHolder() |
CurrentHolder(Current initialValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
_read(InputStream i)
Reads data from
istream and initalizes the
value field of the Holder with the unmarshalled data. |
TypeCode |
_type()
Retrieves the
TypeCode object corresponding to the value
in the value field of the Holder. |
void |
_write(OutputStream o)
Marshals to
ostream the value in the
value field of the Holder. |
public Current value
public CurrentHolder()
public CurrentHolder(Current initialValue)
public void _read(InputStream i)
Streamableistream and initalizes the
value field of the Holder with the unmarshalled data._read in interface Streamablei - the InputStream that represents the CDR data from the wire.public void _write(OutputStream o)
Streamableostream the value in the
value field of the Holder._write in interface Streamableo - the CDR OutputStreampublic TypeCode _type()
StreamableTypeCode object corresponding to the value
in the value field of the Holder._type in interface StreamableTypeCode object for the value held in the holderCopyright © 2019 JBoss by Red Hat. All rights reserved.