- java.lang.Object
-
- swim.system.DownlinkView
-
- swim.system.warp.WarpDownlinkView
-
- swim.system.downlink.EventDownlinkView<V>
-
- All Implemented Interfaces:
Downlink
,EventDownlink<V>
,Link
,WarpDownlink
,WarpLink
,Observable<Object>
,Log
public class EventDownlinkView<V> extends WarpDownlinkView implements EventDownlink<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected EventDownlinkModel
model
protected Form<V>
valueForm
-
Fields inherited from class swim.system.warp.WarpDownlinkView
body, flags, hostUri, KEEP_LINKED, KEEP_SYNCED, laneUri, meshUri, nodeUri, prio, rate
-
Fields inherited from class swim.system.DownlinkView
cellContext, observers, stage
-
-
Constructor Summary
Constructors Constructor Description EventDownlinkView(CellContext cellContext, Stage stage, Uri meshUri, Uri hostUri, Uri nodeUri, Uri laneUri, float prio, float rate, Value body, int flags, Form<V> valueForm, Object observers)
EventDownlinkView(CellContext cellContext, Stage stage, Uri meshUri, Uri hostUri, Uri nodeUri, Uri laneUri, float prio, float rate, Value body, Form<V> valueForm)
-
Method Summary
-
Methods inherited from class swim.system.warp.WarpDownlinkView
body, command, command, command, command, dispatchDidLink, dispatchDidReceive, dispatchDidSync, dispatchDidUnlink, dispatchWillCommand, dispatchWillLink, dispatchWillReceive, dispatchWillSync, dispatchWillUnlink, downlinkDidLink, downlinkDidReceive, downlinkDidSync, downlinkDidUnlink, downlinkWillCommand, downlinkWillLink, downlinkWillReceive, downlinkWillSync, downlinkWillUnlink, hostUri, keepLinked, keepSynced, laneUri, meshUri, nodeUri, prio, rate
-
Methods inherited from class swim.system.DownlinkView
cellContext, cipherSuite, debug, dispatchDidClose, dispatchDidConnect, dispatchDidDisconnect, dispatchDidFail, downlinkDidClose, downlinkDidConnect, downlinkDidDisconnect, downlinkDidFail, error, fail, info, isConnected, isRemote, isSecure, localAddress, localCertificates, localIdentity, localPrincipal, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol, stage, trace, warn
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface swim.api.Link
cipherSuite, hostUri, isConnected, isRemote, isSecure, laneUri, localAddress, localCertificates, localIdentity, localPrincipal, nodeUri, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol
-
Methods inherited from interface swim.api.warp.WarpDownlink
body, command, command, command, command, keepLinked, keepSynced, prio, rate
-
-
-
-
Field Detail
-
model
protected EventDownlinkModel model
-
-
Method Detail
-
downlinkModel
public EventDownlinkModel downlinkModel()
- Specified by:
downlinkModel
in classWarpDownlinkView
-
hostUri
public EventDownlinkView<V> hostUri(Uri hostUri)
- Specified by:
hostUri
in interfaceEventDownlink<V>
- Specified by:
hostUri
in interfaceWarpDownlink
- Specified by:
hostUri
in classWarpDownlinkView
-
hostUri
public EventDownlinkView<V> hostUri(String hostUri)
- Specified by:
hostUri
in interfaceEventDownlink<V>
- Specified by:
hostUri
in interfaceWarpDownlink
- Specified by:
hostUri
in classWarpDownlinkView
-
nodeUri
public EventDownlinkView<V> nodeUri(Uri nodeUri)
- Specified by:
nodeUri
in interfaceEventDownlink<V>
- Specified by:
nodeUri
in interfaceWarpDownlink
- Specified by:
nodeUri
in classWarpDownlinkView
-
nodeUri
public EventDownlinkView<V> nodeUri(String nodeUri)
- Specified by:
nodeUri
in interfaceEventDownlink<V>
- Specified by:
nodeUri
in interfaceWarpDownlink
- Specified by:
nodeUri
in classWarpDownlinkView
-
laneUri
public EventDownlinkView<V> laneUri(Uri laneUri)
- Specified by:
laneUri
in interfaceEventDownlink<V>
- Specified by:
laneUri
in interfaceWarpDownlink
- Specified by:
laneUri
in classWarpDownlinkView
-
laneUri
public EventDownlinkView<V> laneUri(String laneUri)
- Specified by:
laneUri
in interfaceEventDownlink<V>
- Specified by:
laneUri
in interfaceWarpDownlink
- Specified by:
laneUri
in classWarpDownlinkView
-
prio
public EventDownlinkView<V> prio(float prio)
- Specified by:
prio
in interfaceEventDownlink<V>
- Specified by:
prio
in interfaceWarpDownlink
- Specified by:
prio
in classWarpDownlinkView
-
rate
public EventDownlinkView<V> rate(float rate)
- Specified by:
rate
in interfaceEventDownlink<V>
- Specified by:
rate
in interfaceWarpDownlink
- Specified by:
rate
in classWarpDownlinkView
-
body
public EventDownlinkView<V> body(Value body)
- Specified by:
body
in interfaceEventDownlink<V>
- Specified by:
body
in interfaceWarpDownlink
- Specified by:
body
in classWarpDownlinkView
-
keepLinked
public EventDownlinkView<V> keepLinked(boolean keepLinked)
- Specified by:
keepLinked
in interfaceEventDownlink<V>
- Specified by:
keepLinked
in interfaceWarpDownlink
- Specified by:
keepLinked
in classWarpDownlinkView
-
keepSynced
public EventDownlinkView<V> keepSynced(boolean keepSynced)
- Specified by:
keepSynced
in interfaceEventDownlink<V>
- Specified by:
keepSynced
in interfaceWarpDownlink
- Specified by:
keepSynced
in classWarpDownlinkView
-
valueForm
public final Form<V> valueForm()
- Specified by:
valueForm
in interfaceEventDownlink<V>
-
valueForm
public <V2> EventDownlinkView<V2> valueForm(Form<V2> valueForm)
- Specified by:
valueForm
in interfaceEventDownlink<V>
-
valueClass
public <V2> EventDownlinkView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClass
in interfaceEventDownlink<V>
-
observe
public EventDownlinkView<V> observe(Object observer)
- Specified by:
observe
in interfaceDownlink
- Specified by:
observe
in interfaceEventDownlink<V>
- Specified by:
observe
in interfaceLink
- Specified by:
observe
in interfaceObservable<V>
- Specified by:
observe
in interfaceWarpDownlink
- Overrides:
observe
in classWarpDownlinkView
-
unobserve
public EventDownlinkView<V> unobserve(Object observer)
- Specified by:
unobserve
in interfaceDownlink
- Specified by:
unobserve
in interfaceEventDownlink<V>
- Specified by:
unobserve
in interfaceLink
- Specified by:
unobserve
in interfaceObservable<V>
- Specified by:
unobserve
in interfaceWarpDownlink
- Overrides:
unobserve
in classWarpDownlinkView
-
onEvent
public EventDownlinkView<V> onEvent(OnEvent<V> onEvent)
- Specified by:
onEvent
in interfaceEventDownlink<V>
-
willReceive
public EventDownlinkView<V> willReceive(WillReceive willReceive)
- Specified by:
willReceive
in interfaceEventDownlink<V>
- Specified by:
willReceive
in interfaceWarpDownlink
- Specified by:
willReceive
in classWarpDownlinkView
-
didReceive
public EventDownlinkView<V> didReceive(DidReceive didReceive)
- Specified by:
didReceive
in interfaceEventDownlink<V>
- Specified by:
didReceive
in interfaceWarpDownlink
- Specified by:
didReceive
in classWarpDownlinkView
-
willCommand
public EventDownlinkView<V> willCommand(WillCommand willCommand)
- Specified by:
willCommand
in interfaceEventDownlink<V>
- Specified by:
willCommand
in interfaceWarpDownlink
- Specified by:
willCommand
in classWarpDownlinkView
-
willLink
public EventDownlinkView<V> willLink(WillLink willLink)
- Specified by:
willLink
in interfaceEventDownlink<V>
- Specified by:
willLink
in interfaceWarpDownlink
- Specified by:
willLink
in classWarpDownlinkView
-
didLink
public EventDownlinkView<V> didLink(DidLink didLink)
- Specified by:
didLink
in interfaceEventDownlink<V>
- Specified by:
didLink
in interfaceWarpDownlink
- Specified by:
didLink
in classWarpDownlinkView
-
willSync
public EventDownlinkView<V> willSync(WillSync willSync)
- Specified by:
willSync
in interfaceEventDownlink<V>
- Specified by:
willSync
in interfaceWarpDownlink
- Specified by:
willSync
in classWarpDownlinkView
-
didSync
public EventDownlinkView<V> didSync(DidSync didSync)
- Specified by:
didSync
in interfaceEventDownlink<V>
- Specified by:
didSync
in interfaceWarpDownlink
- Specified by:
didSync
in classWarpDownlinkView
-
willUnlink
public EventDownlinkView<V> willUnlink(WillUnlink willUnlink)
- Specified by:
willUnlink
in interfaceEventDownlink<V>
- Specified by:
willUnlink
in interfaceWarpDownlink
- Specified by:
willUnlink
in classWarpDownlinkView
-
didUnlink
public EventDownlinkView<V> didUnlink(DidUnlink didUnlink)
- Specified by:
didUnlink
in interfaceEventDownlink<V>
- Specified by:
didUnlink
in interfaceWarpDownlink
- Specified by:
didUnlink
in classWarpDownlinkView
-
didConnect
public EventDownlinkView<V> didConnect(DidConnect didConnect)
- Specified by:
didConnect
in interfaceDownlink
- Specified by:
didConnect
in interfaceEventDownlink<V>
- Specified by:
didConnect
in interfaceWarpDownlink
- Specified by:
didConnect
in classWarpDownlinkView
-
didDisconnect
public EventDownlinkView<V> didDisconnect(DidDisconnect didDisconnect)
- Specified by:
didDisconnect
in interfaceDownlink
- Specified by:
didDisconnect
in interfaceEventDownlink<V>
- Specified by:
didDisconnect
in interfaceWarpDownlink
- Specified by:
didDisconnect
in classWarpDownlinkView
-
didClose
public EventDownlinkView<V> didClose(DidClose didClose)
- Specified by:
didClose
in interfaceDownlink
- Specified by:
didClose
in interfaceEventDownlink<V>
- Specified by:
didClose
in interfaceWarpDownlink
- Specified by:
didClose
in classWarpDownlinkView
-
didFail
public EventDownlinkView<V> didFail(DidFail didFail)
- Specified by:
didFail
in interfaceDownlink
- Specified by:
didFail
in interfaceEventDownlink<V>
- Specified by:
didFail
in interfaceWarpDownlink
- Specified by:
didFail
in classWarpDownlinkView
-
dispatchOnEvent
public boolean dispatchOnEvent(V value, boolean preemptive)
-
downlinkOnEvent
public void downlinkOnEvent(V value)
-
createDownlinkModel
public EventDownlinkModel createDownlinkModel()
- Specified by:
createDownlinkModel
in classWarpDownlinkView
-
open
public EventDownlinkView<V> open()
- Specified by:
open
in interfaceDownlink
- Specified by:
open
in interfaceEventDownlink<V>
- Specified by:
open
in interfaceWarpDownlink
- Specified by:
open
in classWarpDownlinkView
-
close
public void close()
- Specified by:
close
in interfaceLink
- Overrides:
close
in classDownlinkView
-
-