DATA
- The type of the datagram to be operated with.public abstract class AbstractSender<DATA extends Serializable> extends AbstractConnectableAutomaton implements Sender<DATA>
AbstractSender
is a base abstract implementation of the
Sender
interface providing common functionality for concrete real
live Sender
implementations.ConnectableComponent.ConnectableAutomaton
OpenedAccessor.OpenedMutator, OpenedAccessor.OpenedProperty
Closable.CloseAutomaton
ClosedAccessor.ClosedMutator, ClosedAccessor.ClosedProperty
ConnectionStatusAccessor.ConnectionStatusMutator, ConnectionStatusAccessor.ConnectionStatusProperty
Constructor and Description |
---|
AbstractSender() |
Modifier and Type | Method and Description |
---|---|
abstract void |
writeDatagram(DATA aDatagram)
Writes (sends) a datagram to a listening
Receiver . |
close, getConnectionStatus, isClosable, isClosed, isOpenable, isOpened, open, setConnectionStatus
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOpened
isClosable
isClosed
getConnectionStatus
public abstract void writeDatagram(DATA aDatagram) throws OpenException
Receiver
.writeDatagram
in interface Sender<DATA extends Serializable>
aDatagram
- The datagram to be pushed to the receiving
Sender
.OpenException
- Thrown in case opening or accessing an open line
(connection, junction, link) caused problems.Copyright © 2015. All rights reserved.