- java.lang.Object
-
- swim.runtime.DownlinkView
-
- swim.runtime.warp.WarpDownlinkView
-
- swim.runtime.downlink.EventDownlinkView<V>
-
- All Implemented Interfaces:
swim.api.Downlink,swim.api.downlink.EventDownlink<V>,swim.api.Link,swim.api.warp.WarpDownlink,swim.api.warp.WarpLink,swim.observable.Observable<Object>,swim.util.Log
public class EventDownlinkView<V> extends WarpDownlinkView implements swim.api.downlink.EventDownlink<V>
-
-
Field Summary
Fields Modifier and Type Field Description protected EventDownlinkModelmodelprotected swim.structure.Form<V>valueForm-
Fields inherited from class swim.runtime.warp.WarpDownlinkView
body, flags, hostUri, KEEP_LINKED, KEEP_SYNCED, laneUri, meshUri, nodeUri, prio, rate
-
Fields inherited from class swim.runtime.DownlinkView
cellContext, observers, stage
-
-
Constructor Summary
Constructors Constructor Description EventDownlinkView(CellContext cellContext, swim.concurrent.Stage stage, swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body, int flags, swim.structure.Form<V> valueForm, Object observers)EventDownlinkView(CellContext cellContext, swim.concurrent.Stage stage, swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body, swim.structure.Form<V> valueForm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventDownlinkView<V>body(swim.structure.Value body)voidclose()EventDownlinkModelcreateDownlinkModel()EventDownlinkView<V>didClose(swim.api.function.DidClose didClose)EventDownlinkView<V>didConnect(swim.api.function.DidConnect didConnect)EventDownlinkView<V>didDisconnect(swim.api.function.DidDisconnect didDisconnect)EventDownlinkView<V>didFail(swim.api.function.DidFail didFail)EventDownlinkView<V>didLink(swim.api.warp.function.DidLink didLink)EventDownlinkView<V>didReceive(swim.api.warp.function.DidReceive didReceive)EventDownlinkView<V>didSync(swim.api.warp.function.DidSync didSync)EventDownlinkView<V>didUnlink(swim.api.warp.function.DidUnlink didUnlink)booleandispatchOnEvent(V value, boolean preemptive)EventDownlinkModeldownlinkModel()voiddownlinkOnEvent(V value)EventDownlinkView<V>hostUri(String hostUri)EventDownlinkView<V>hostUri(swim.uri.Uri hostUri)EventDownlinkView<V>keepLinked(boolean keepLinked)EventDownlinkView<V>keepSynced(boolean keepSynced)EventDownlinkView<V>laneUri(String laneUri)EventDownlinkView<V>laneUri(swim.uri.Uri laneUri)EventDownlinkView<V>nodeUri(String nodeUri)EventDownlinkView<V>nodeUri(swim.uri.Uri nodeUri)EventDownlinkView<V>observe(Object observer)EventDownlinkView<V>onEvent(swim.api.warp.function.OnEvent<V> onEvent)EventDownlinkView<V>open()EventDownlinkView<V>prio(float prio)EventDownlinkView<V>rate(float rate)protected ObjecttypesafeObservers(Object observers)EventDownlinkView<V>unobserve(Object observer)<V2> EventDownlinkView<V2>valueClass(Class<V2> valueClass)swim.structure.Form<V>valueForm()<V2> EventDownlinkView<V2>valueForm(swim.structure.Form<V2> valueForm)EventDownlinkView<V>willCommand(swim.api.warp.function.WillCommand willCommand)EventDownlinkView<V>willLink(swim.api.warp.function.WillLink willLink)EventDownlinkView<V>willReceive(swim.api.warp.function.WillReceive willReceive)EventDownlinkView<V>willSync(swim.api.warp.function.WillSync willSync)EventDownlinkView<V>willUnlink(swim.api.warp.function.WillUnlink willUnlink)-
Methods inherited from class swim.runtime.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.runtime.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
-
-
-
-
Field Detail
-
valueForm
protected final swim.structure.Form<V> valueForm
-
model
protected EventDownlinkModel model
-
-
Constructor Detail
-
EventDownlinkView
public EventDownlinkView(CellContext cellContext, swim.concurrent.Stage stage, swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body, int flags, swim.structure.Form<V> valueForm, Object observers)
-
EventDownlinkView
public EventDownlinkView(CellContext cellContext, swim.concurrent.Stage stage, swim.uri.Uri meshUri, swim.uri.Uri hostUri, swim.uri.Uri nodeUri, swim.uri.Uri laneUri, float prio, float rate, swim.structure.Value body, swim.structure.Form<V> valueForm)
-
-
Method Detail
-
downlinkModel
public EventDownlinkModel downlinkModel()
- Specified by:
downlinkModelin classWarpDownlinkView
-
hostUri
public EventDownlinkView<V> hostUri(swim.uri.Uri hostUri)
- Specified by:
hostUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
hostUriin interfaceswim.api.warp.WarpDownlink- Specified by:
hostUriin classWarpDownlinkView
-
hostUri
public EventDownlinkView<V> hostUri(String hostUri)
- Specified by:
hostUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
hostUriin interfaceswim.api.warp.WarpDownlink- Specified by:
hostUriin classWarpDownlinkView
-
nodeUri
public EventDownlinkView<V> nodeUri(swim.uri.Uri nodeUri)
- Specified by:
nodeUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
nodeUriin interfaceswim.api.warp.WarpDownlink- Specified by:
nodeUriin classWarpDownlinkView
-
nodeUri
public EventDownlinkView<V> nodeUri(String nodeUri)
- Specified by:
nodeUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
nodeUriin interfaceswim.api.warp.WarpDownlink- Specified by:
nodeUriin classWarpDownlinkView
-
laneUri
public EventDownlinkView<V> laneUri(swim.uri.Uri laneUri)
- Specified by:
laneUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
laneUriin interfaceswim.api.warp.WarpDownlink- Specified by:
laneUriin classWarpDownlinkView
-
laneUri
public EventDownlinkView<V> laneUri(String laneUri)
- Specified by:
laneUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
laneUriin interfaceswim.api.warp.WarpDownlink- Specified by:
laneUriin classWarpDownlinkView
-
prio
public EventDownlinkView<V> prio(float prio)
- Specified by:
prioin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
prioin interfaceswim.api.warp.WarpDownlink- Specified by:
prioin classWarpDownlinkView
-
rate
public EventDownlinkView<V> rate(float rate)
- Specified by:
ratein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
ratein interfaceswim.api.warp.WarpDownlink- Specified by:
ratein classWarpDownlinkView
-
body
public EventDownlinkView<V> body(swim.structure.Value body)
- Specified by:
bodyin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
bodyin interfaceswim.api.warp.WarpDownlink- Specified by:
bodyin classWarpDownlinkView
-
keepLinked
public EventDownlinkView<V> keepLinked(boolean keepLinked)
- Specified by:
keepLinkedin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
keepLinkedin interfaceswim.api.warp.WarpDownlink- Specified by:
keepLinkedin classWarpDownlinkView
-
keepSynced
public EventDownlinkView<V> keepSynced(boolean keepSynced)
- Specified by:
keepSyncedin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
keepSyncedin interfaceswim.api.warp.WarpDownlink- Specified by:
keepSyncedin classWarpDownlinkView
-
valueForm
public final swim.structure.Form<V> valueForm()
- Specified by:
valueFormin interfaceswim.api.downlink.EventDownlink<V>
-
valueForm
public <V2> EventDownlinkView<V2> valueForm(swim.structure.Form<V2> valueForm)
- Specified by:
valueFormin interfaceswim.api.downlink.EventDownlink<V>
-
valueClass
public <V2> EventDownlinkView<V2> valueClass(Class<V2> valueClass)
- Specified by:
valueClassin interfaceswim.api.downlink.EventDownlink<V>
-
observe
public EventDownlinkView<V> observe(Object observer)
- Specified by:
observein interfaceswim.api.Downlink- Specified by:
observein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
observein interfaceswim.api.Link- Specified by:
observein interfaceswim.observable.Observable<V>- Specified by:
observein interfaceswim.api.warp.WarpDownlink- Overrides:
observein classWarpDownlinkView
-
unobserve
public EventDownlinkView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.Downlink- Specified by:
unobservein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
unobservein interfaceswim.api.Link- Specified by:
unobservein interfaceswim.observable.Observable<V>- Specified by:
unobservein interfaceswim.api.warp.WarpDownlink- Overrides:
unobservein classWarpDownlinkView
-
onEvent
public EventDownlinkView<V> onEvent(swim.api.warp.function.OnEvent<V> onEvent)
- Specified by:
onEventin interfaceswim.api.downlink.EventDownlink<V>
-
willReceive
public EventDownlinkView<V> willReceive(swim.api.warp.function.WillReceive willReceive)
- Specified by:
willReceivein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willReceivein interfaceswim.api.warp.WarpDownlink- Specified by:
willReceivein classWarpDownlinkView
-
didReceive
public EventDownlinkView<V> didReceive(swim.api.warp.function.DidReceive didReceive)
- Specified by:
didReceivein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didReceivein interfaceswim.api.warp.WarpDownlink- Specified by:
didReceivein classWarpDownlinkView
-
willCommand
public EventDownlinkView<V> willCommand(swim.api.warp.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willCommandin interfaceswim.api.warp.WarpDownlink- Specified by:
willCommandin classWarpDownlinkView
-
willLink
public EventDownlinkView<V> willLink(swim.api.warp.function.WillLink willLink)
- Specified by:
willLinkin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willLinkin interfaceswim.api.warp.WarpDownlink- Specified by:
willLinkin classWarpDownlinkView
-
didLink
public EventDownlinkView<V> didLink(swim.api.warp.function.DidLink didLink)
- Specified by:
didLinkin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didLinkin interfaceswim.api.warp.WarpDownlink- Specified by:
didLinkin classWarpDownlinkView
-
willSync
public EventDownlinkView<V> willSync(swim.api.warp.function.WillSync willSync)
- Specified by:
willSyncin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willSyncin interfaceswim.api.warp.WarpDownlink- Specified by:
willSyncin classWarpDownlinkView
-
didSync
public EventDownlinkView<V> didSync(swim.api.warp.function.DidSync didSync)
- Specified by:
didSyncin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didSyncin interfaceswim.api.warp.WarpDownlink- Specified by:
didSyncin classWarpDownlinkView
-
willUnlink
public EventDownlinkView<V> willUnlink(swim.api.warp.function.WillUnlink willUnlink)
- Specified by:
willUnlinkin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willUnlinkin interfaceswim.api.warp.WarpDownlink- Specified by:
willUnlinkin classWarpDownlinkView
-
didUnlink
public EventDownlinkView<V> didUnlink(swim.api.warp.function.DidUnlink didUnlink)
- Specified by:
didUnlinkin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didUnlinkin interfaceswim.api.warp.WarpDownlink- Specified by:
didUnlinkin classWarpDownlinkView
-
didConnect
public EventDownlinkView<V> didConnect(swim.api.function.DidConnect didConnect)
- Specified by:
didConnectin interfaceswim.api.Downlink- Specified by:
didConnectin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didConnectin interfaceswim.api.warp.WarpDownlink- Specified by:
didConnectin classWarpDownlinkView
-
didDisconnect
public EventDownlinkView<V> didDisconnect(swim.api.function.DidDisconnect didDisconnect)
- Specified by:
didDisconnectin interfaceswim.api.Downlink- Specified by:
didDisconnectin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didDisconnectin interfaceswim.api.warp.WarpDownlink- Specified by:
didDisconnectin classWarpDownlinkView
-
didClose
public EventDownlinkView<V> didClose(swim.api.function.DidClose didClose)
- Specified by:
didClosein interfaceswim.api.Downlink- Specified by:
didClosein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didClosein interfaceswim.api.warp.WarpDownlink- Specified by:
didClosein classWarpDownlinkView
-
didFail
public EventDownlinkView<V> didFail(swim.api.function.DidFail didFail)
- Specified by:
didFailin interfaceswim.api.Downlink- Specified by:
didFailin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didFailin interfaceswim.api.warp.WarpDownlink- Specified by:
didFailin classWarpDownlinkView
-
dispatchOnEvent
public boolean dispatchOnEvent(V value, boolean preemptive)
-
downlinkOnEvent
public void downlinkOnEvent(V value)
-
createDownlinkModel
public EventDownlinkModel createDownlinkModel()
- Specified by:
createDownlinkModelin classWarpDownlinkView
-
open
public EventDownlinkView<V> open()
- Specified by:
openin interfaceswim.api.Downlink- Specified by:
openin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
openin interfaceswim.api.warp.WarpDownlink- Specified by:
openin classWarpDownlinkView
-
close
public void close()
- Specified by:
closein interfaceswim.api.Link- Overrides:
closein classDownlinkView
-
-