public interface SkeletonSupport
| Modifier and Type | Method and Description |
|---|---|
<V> void |
completion(Future<V> response,
RemoteCompletion<V> completion)
Used by asynchronous methods which return a Future to write completion
response.
|
OrderedInvoker |
createOrderedInvoker()
Called if Skeleton needs to support ordered method invocation.
|
void |
dispose(VersionedIdentifier objId)
Called by a disposer method when finished executing.
|
<R extends Remote> |
failedBatchedRemote(Class<R> type,
Throwable cause)
Used by batched methods which return a Remote object.
|
int |
finished(InvocationChannel channel,
boolean reset)
Called after synchronous method is finished with channel.
|
int |
finished(InvocationChannel channel,
Throwable cause)
Called after synchronous method threw an exception and is finished with
channel.
|
void |
finishedAsync(InvocationChannel channel)
Called after asynchronous method is finished with channel.
|
<R extends Remote> |
linkBatchedRemote(Skeleton skeleton,
String skeletonMethodName,
Identifier typeId,
VersionedIdentifier remoteId,
Class<R> type,
R remote)
Used by batched methods which return a Remote object.
|
Pipe |
requestReply(InvocationChannel channel)
Called if channel is expected to be a request-reply Pipe.
|
void |
uncaughtException(Throwable cause)
Called if an asynchronous method throws an exception which cannot be
passed to the remote caller.
|
Pipe requestReply(InvocationChannel channel)
<V> void completion(Future<V> response, RemoteCompletion<V> completion) throws RemoteException
RemoteException<R extends Remote> void linkBatchedRemote(Skeleton skeleton, String skeletonMethodName, Identifier typeId, VersionedIdentifier remoteId, Class<R> type, R remote) throws RemoteException
skeleton - skeleton which was invokedskeletonMethodName - name skeleton method invokedtypeId - type ID assigned by clientremoteId - object ID assigned by clienttype - type of remote objectremote - remote object returned by server methodRemoteException<R extends Remote> R failedBatchedRemote(Class<R> type, Throwable cause)
type - type of remote objectcause - thrown by server methodint finished(InvocationChannel channel, boolean reset)
reset - pass true if object output should be resetint finished(InvocationChannel channel, Throwable cause)
void finishedAsync(InvocationChannel channel)
void uncaughtException(Throwable cause)
OrderedInvoker createOrderedInvoker()
void dispose(VersionedIdentifier objId)
Copyright © 2006–2015 Cojen. All rights reserved.