org.fusesource.fabric.dosgi.tcp
Class AsyncInvocationStrategy
java.lang.Object
org.fusesource.fabric.dosgi.tcp.AsyncInvocationStrategy
- All Implemented Interfaces:
- InvocationStrategy
public class AsyncInvocationStrategy
- extends java.lang.Object
- implements InvocationStrategy
- Author:
- Hiram Chirino
|
Method Summary |
static boolean |
isAsyncMethod(java.lang.reflect.Method method)
|
ResponseFuture |
request(SerializationStrategy serializationStrategy,
java.lang.ClassLoader loader,
java.lang.reflect.Method method,
java.lang.Object[] args,
org.fusesource.hawtbuf.DataByteArrayOutputStream target)
|
void |
service(SerializationStrategy serializationStrategy,
java.lang.ClassLoader loader,
java.lang.reflect.Method method,
java.lang.Object target,
org.fusesource.hawtbuf.DataByteArrayInputStream requestStream,
org.fusesource.hawtbuf.DataByteArrayOutputStream responseStream,
java.lang.Runnable onComplete)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final AsyncInvocationStrategy INSTANCE
AsyncInvocationStrategy
public AsyncInvocationStrategy()
isAsyncMethod
public static boolean isAsyncMethod(java.lang.reflect.Method method)
request
public ResponseFuture request(SerializationStrategy serializationStrategy,
java.lang.ClassLoader loader,
java.lang.reflect.Method method,
java.lang.Object[] args,
org.fusesource.hawtbuf.DataByteArrayOutputStream target)
throws java.lang.Exception
- Specified by:
request in interface InvocationStrategy
- Throws:
java.lang.Exception
service
public void service(SerializationStrategy serializationStrategy,
java.lang.ClassLoader loader,
java.lang.reflect.Method method,
java.lang.Object target,
org.fusesource.hawtbuf.DataByteArrayInputStream requestStream,
org.fusesource.hawtbuf.DataByteArrayOutputStream responseStream,
java.lang.Runnable onComplete)
- Specified by:
service in interface InvocationStrategy
Copyright © 2013 Red Hat. All Rights Reserved.