DATA
- The type of the datagram block (array) to be operated with. Do
not provide an array type as the methods use to generic type for
defining an array argument.public interface BlockSender<DATA extends Serializable> extends Sendable
BlockSender
is used to send datagram blocks (arrays) in a unified
way.org.refcodes.component.ConnectableComponent.ConnectableAutomaton
org.refcodes.component.OpenedAccessor.OpenedMutator, org.refcodes.component.OpenedAccessor.OpenedProperty
org.refcodes.component.Closable.CloseAutomaton
Modifier and Type | Method and Description |
---|---|
void |
writeDatagrams(DATA[] aDatagram)
Writes (sends) a datagram block to a listening
DatagramReceiver or
BlockReceiver . |
void |
writeDatagrams(DATA[] aDatagram,
int aOffset,
int aLength) |
void writeDatagrams(DATA[] aDatagram) throws org.refcodes.component.OpenException
DatagramReceiver
or
BlockReceiver
.aDatagram
- The datagram to be pushed to the receiving
DatagramReceiver
or BlockReceiver
.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.void writeDatagrams(DATA[] aDatagram, int aOffset, int aLength) throws org.refcodes.component.OpenException
org.refcodes.component.OpenException
Copyright © 2016. All rights reserved.