Package org.refcodes.io
Interface ShortDatagramReceiver
-
- 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,ShortDatagramProvider
- All Known Subinterfaces:
ConnectionShortReceiver<CON>,ConnectionShortTransceiver<CON>,LoopbackShortReceiver,LoopbackShortTransceiver,ShortReceiver,ShortTransceiver
- All Known Implementing Classes:
AbstractShortReceiver,LoopbackShortReceiverImpl,LoopbackShortTransceiverImpl,ShortArrayReceiverImpl,ShortReceiverDecorator
public interface ShortDatagramReceiver extends ShortDatagramProvider, Receivable
TheShortDatagramReceiveris used to receive shorts in a unified way. TheShortDatagramProvider.readDatagram()method provides the next available short from the counterpartDatagramSender; in case there is none available, then this method halts until one is available or theShortDatagramReceiveris being shut down or the underlying connection is closed. TheReceivable.hasDatagram()method returns true in case a next short can be fetched via theShortDatagramProvider.readDatagram()method from theShortDatagramReceivercounterpart.
-
-
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.ShortDatagramProvider
readDatagram
-
-