Class DefaultChannel<T>
java.lang.Object
io.aleph0.yap.core.transport.channel.DefaultChannel<T>
- All Implemented Interfaces:
Channel<T>,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.aleph0.yap.core.transport.Channel
Channel.Binding<T> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbind(Channel.Binding<T> binding) voidclose()voidbooleantryPublish(T message)
-
Constructor Details
-
DefaultChannel
public DefaultChannel()
-
-
Method Details
-
bind
-
tryPublish
- Specified by:
tryPublishin interfaceChannel<T>
-
publish
- Specified by:
publishin interfaceChannel<T>- Throws:
InterruptedException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceChannel<T>
-