com.sun.xml.ws.client
Class AsyncInvoker

java.lang.Object
  extended by com.sun.xml.ws.client.AsyncInvoker
All Implemented Interfaces:
java.lang.Runnable

public abstract class AsyncInvoker
extends java.lang.Object
implements java.lang.Runnable

Invokes Tubeline asynchronously for the client's async API(for e.g.: Dispatch#invokeAsync} The concrete classes need to call Stub.processAsync(AsyncResponseImpl, Packet, RequestContext, Fiber.CompletionCallback) in run() method.


Field Summary
protected  boolean nonNullAsyncHandlerGiven
           
protected  AsyncResponseImpl responseImpl
          Because of the object instantiation order, we can't take this as a constructor parameter.
 
Constructor Summary
AsyncInvoker()
           
 
Method Summary
abstract  void do_run()
           
 AsyncResponseImpl getResponseImpl()
           
 boolean isNonNullAsyncHandlerGiven()
           
 void run()
           
 void setNonNullAsyncHandlerGiven(boolean nonNullAsyncHandlerGiven)
           
 void setReceiver(AsyncResponseImpl responseImpl)
           
 void setResponseImpl(AsyncResponseImpl responseImpl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

responseImpl

protected AsyncResponseImpl responseImpl
Because of the object instantiation order, we can't take this as a constructor parameter.


nonNullAsyncHandlerGiven

protected boolean nonNullAsyncHandlerGiven
Constructor Detail

AsyncInvoker

public AsyncInvoker()
Method Detail

setReceiver

public void setReceiver(AsyncResponseImpl responseImpl)

getResponseImpl

public AsyncResponseImpl getResponseImpl()

setResponseImpl

public void setResponseImpl(AsyncResponseImpl responseImpl)

isNonNullAsyncHandlerGiven

public boolean isNonNullAsyncHandlerGiven()

setNonNullAsyncHandlerGiven

public void setNonNullAsyncHandlerGiven(boolean nonNullAsyncHandlerGiven)

run

public void run()
Specified by:
run in interface java.lang.Runnable

do_run

public abstract void do_run()


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.