Package org.refcodes.io
Interface ShortBlockReceiver
-
- All Superinterfaces:
org.refcodes.component.Closable,org.refcodes.component.Closable.CloseAutomaton,org.refcodes.component.ClosedAccessor,org.refcodes.component.ConnectableComponent,org.refcodes.component.ConnectableComponent.ConnectableAutomaton,org.refcodes.component.ConnectionStatusAccessor,org.refcodes.component.OpenedAccessor,Receivable,org.refcodes.mixin.Releaseable,ShortBlockProvider
- All Known Subinterfaces:
ConnectionShortReceiver<CON>,ConnectionShortTransceiver<CON>,LoopbackShortReceiver,LoopbackShortTransceiver,ShortReceiver,ShortTransceiver
- All Known Implementing Classes:
AbstractShortReceiver,LoopbackShortReceiverImpl,LoopbackShortTransceiverImpl,ShortArrayReceiverImpl,ShortReceiverDecorator
public interface ShortBlockReceiver extends ShortBlockProvider, Receivable
TheShortBlockReceiveris used to receive short blocks (arrays) in a unified way. TheShortBlockProvider.readDatagrams()method provides the next available short block from the counterpartBlockSenderorDatagramSender; in case there is none available, then this method halts until one is available or theShortBlockReceiveris being shut down or the underlying connection is closed. TheReceivable.hasDatagram()method returns true in case a next short(s) can be fetched via theShortBlockProvider.readDatagrams()method from theShortBlockReceivercounterpart.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.refcodes.component.Closable
org.refcodes.component.Closable.CloseAutomaton, org.refcodes.component.Closable.CloseBuilder<B extends org.refcodes.component.Closable.CloseBuilder<B>>
-
Nested classes/interfaces inherited from interface org.refcodes.component.ClosedAccessor
org.refcodes.component.ClosedAccessor.ClosedMutator, org.refcodes.component.ClosedAccessor.ClosedProperty
-
Nested classes/interfaces inherited from interface org.refcodes.component.ConnectableComponent
org.refcodes.component.ConnectableComponent.ConnectableAutomaton
-
-
Method Summary
-
Methods inherited from interface org.refcodes.component.Closable
close, closeIn, closeQuietly, closeUnchecked
-
Methods inherited from interface org.refcodes.component.ConnectionStatusAccessor
getConnectionStatus, isConnectionOpened
-
Methods inherited from interface org.refcodes.io.Receivable
hasDatagram
-
Methods inherited from interface org.refcodes.io.ShortBlockProvider
readDatagrams, readDatagrams
-
-