Class AsyncEndpointAdapter<M,N>
- java.lang.Object
-
- org.apache.axis2.transport.testkit.endpoint.AsyncEndpointAdapter<M,N>
-
- All Implemented Interfaces:
Adapter
,AsyncEndpoint<M>
public class AsyncEndpointAdapter<M,N> extends Object implements AsyncEndpoint<M>, Adapter
-
-
Constructor Summary
Constructors Constructor Description AsyncEndpointAdapter(AsyncEndpoint<N> target, MessageDecoder<N,M> decoder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
Discard any pending messages.AsyncEndpoint<N>
getTarget()
IncomingMessage<M>
waitForMessage(int timeout)
-
-
-
Constructor Detail
-
AsyncEndpointAdapter
public AsyncEndpointAdapter(AsyncEndpoint<N> target, MessageDecoder<N,M> decoder)
-
-
Method Detail
-
getTarget
public AsyncEndpoint<N> getTarget()
-
clear
public void clear() throws Exception
Description copied from interface:AsyncEndpoint
Discard any pending messages.- Specified by:
clear
in interfaceAsyncEndpoint<M>
- Throws:
Exception
-
waitForMessage
public IncomingMessage<M> waitForMessage(int timeout) throws Throwable
- Specified by:
waitForMessage
in interfaceAsyncEndpoint<M>
- Throws:
Throwable
-
-