| Package | Description |
|---|---|
| org.cojen.dirmi.core |
Session implementation classes.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Throwable> |
StubSupport.invoke(Class<T> remoteFailureException)
Writes request header to a free channel.
|
<T extends Throwable> |
StubSupport.invoke(Class<T> remoteFailureException,
double timeout,
TimeUnit unit)
Writes request header to free channel.
|
<T extends Throwable> |
StubSupport.invoke(Class<T> remoteFailureException,
long timeout,
TimeUnit unit)
Writes request header to a free channel.
|
InvocationChannel |
StubSupport.unbatch()
Called by unbatched methods to temporarily release a thread-local channel.
|
| Modifier and Type | Method and Description |
|---|---|
void |
StubSupport.batched(InvocationChannel channel)
Called after batched request is sent over channel and current thread
should hold channel.
|
void |
StubSupport.batchedAndCancelTimeout(InvocationChannel channel)
Called after batched request is sent over channel and current thread
should hold channel.
|
<T extends Throwable,R extends Remote> |
StubSupport.createBatchedRemote(Class<T> remoteFailureException,
InvocationChannel channel,
Class<R> type)
Used by batched methods which return a Remote object.
|
<T extends Throwable> |
StubSupport.failed(Class<T> remoteFailureException,
InvocationChannel channel,
Throwable cause)
Called if invocation failed due to a problem with the channel, and it
should be closed.
|
<T extends Throwable> |
StubSupport.failedAndCancelTimeout(Class<T> remoteFailureException,
InvocationChannel channel,
Throwable cause,
double timeout,
TimeUnit unit)
Called if invocation failed due to a problem with the channel, and it
should be closed.
|
<T extends Throwable> |
StubSupport.failedAndCancelTimeout(Class<T> remoteFailureException,
InvocationChannel channel,
Throwable cause,
long timeout,
TimeUnit unit)
Called if invocation failed due to a problem with the channel, and it
should be closed.
|
int |
SkeletonSupport.finished(InvocationChannel channel,
boolean reset)
Called after synchronous method is finished with channel.
|
void |
StubSupport.finished(InvocationChannel channel,
boolean reset)
Called after channel usage is finished and can be reused for sending
new requests.
|
int |
SkeletonSupport.finished(InvocationChannel channel,
Throwable cause)
Called after synchronous method threw an exception and is finished with
channel.
|
void |
StubSupport.finishedAndCancelTimeout(InvocationChannel channel,
boolean reset)
Called after channel usage is finished and can be reused for sending
new requests.
|
void |
SkeletonSupport.finishedAsync(InvocationChannel channel)
Called after asynchronous method is finished with channel.
|
int |
Skeleton.invoke(Link sessionLink,
int methodId,
InvocationChannel channel,
BatchedInvocationException batchedException)
Invoke a remote method on the server.
|
void |
StubSupport.rebatch(InvocationChannel channel)
Called by unbatched methods to re-instate a thread-local channel.
|
void |
StubSupport.release(InvocationChannel channel)
Called if channel is to be used for returning a Pipe.
|
Pipe |
SkeletonSupport.requestReply(InvocationChannel channel)
Called if channel is expected to be a request-reply Pipe.
|
Pipe |
StubSupport.requestReply(InvocationChannel channel)
Called if channel is to be used for returning a request-reply Pipe.
|
| Constructor and Description |
|---|
InvocationInputStream(InvocationChannel channel,
ObjectInputStream in) |
InvocationOutputStream(InvocationChannel channel,
DrainableObjectOutputStream out) |
Copyright © 2006–2015 Cojen. All rights reserved.