public interface Skeleton<R extends Remote> extends Unreferenced
SkeletonFactory| Modifier and Type | Field and Description |
|---|---|
static int |
READ_ANY_THREAD
Caller should read another request, using any thread.
|
static int |
READ_FINISHED
Caller should not read any more requests.
|
static int |
READ_SAME_THREAD
Caller should read another request, in the current thread.
|
| Modifier and Type | Method and Description |
|---|---|
R |
getRemoteServer()
Returns the Remote object managed by this Skeleton.
|
int |
invoke(Link sessionLink,
int methodId,
InvocationChannel channel,
BatchedInvocationException batchedException)
Invoke a remote method on the server.
|
unreferencedstatic final int READ_FINISHED
static final int READ_ANY_THREAD
static final int READ_SAME_THREAD
R getRemoteServer()
int invoke(Link sessionLink, int methodId, InvocationChannel channel, BatchedInvocationException batchedException) throws IOException, NoSuchMethodException, NoSuchObjectException, ClassNotFoundException, BatchedInvocationException
If this invocation is after a batched call which threw an exception, the batchedException parameter wraps it. If non-null, the input arguments must be discarded and the method not actually invoked. Next, if method is batched, the same exception is re-thrown. Otherwise, the exception is converted to a type compatible with the method's throwable exception types and handled like any other thrown exception. For synchronous methods, this means the exception is written to the channel.
sessionLink - link to session, used by SessionAware objectsmethodId - method to invokechannel - InvocationChannel for reading method arguments and for
writing response.batchedException - optional exception which was thrown earlier in a batch requestIOException - if thrown from channelNoSuchMethodException - if method is unknownNoSuchObjectException - if remote parameter refers to an unknown objectClassNotFoundException - if unmarshalling an object parameter
refers to an unknown classBatchedInvocationException - if method is batched and
throws an exceptionCopyright © 2006–2015 Cojen. All rights reserved.