Class AsynchronousTransportMechanism<T>
- java.lang.Object
-
- de.quantummaid.eventmaid.internal.pipe.transport.AsynchronousTransportMechanism<T>
-
- All Implemented Interfaces:
TransportMechanism<T>
public final class AsynchronousTransportMechanism<T> extends Object implements TransportMechanism<T>
-
-
Constructor Summary
Constructors Constructor Description AsynchronousTransportMechanism()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(int timeout, TimeUnit timeUnit)voidclose(boolean finishRemainingTasks)booleanisShutdown()voidtransport(T message)
-
-
-
Method Detail
-
transport
public void transport(T message)
- Specified by:
transportin interfaceTransportMechanism<T>
-
close
public void close(boolean finishRemainingTasks)
- Specified by:
closein interfaceTransportMechanism<T>
-
isShutdown
public boolean isShutdown()
- Specified by:
isShutdownin interfaceTransportMechanism<T>
-
awaitTermination
public boolean awaitTermination(int timeout, TimeUnit timeUnit) throws InterruptedException- Specified by:
awaitTerminationin interfaceTransportMechanism<T>- Throws:
InterruptedException
-
-