DATA
- The type of the datagram to be operated with. In case you wish
to use array types, you might better use the BlockSender
type.public interface DatagramSender<DATA extends Serializable> extends Sendable
DatagramSender
is used to send datagrams 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 |
writeDatagram(DATA aDatagram)
Writes (sends) a datagram to a listening
DatagramReceiver . |
void writeDatagram(DATA aDatagram) throws org.refcodes.component.OpenException
DatagramReceiver
.aDatagram
- The datagram to be pushed to the receiving
DatagramSender
.org.refcodes.component.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2017. All rights reserved.