- java.lang.Object
-
- swim.runtime.downlink.DownlinkView
-
- swim.runtime.downlink.EventDownlinkView<V>
-
- All Implemented Interfaces:
swim.api.downlink.Downlink,swim.api.downlink.EventDownlink<V>,swim.api.Link,swim.observable.Observable<Object>,swim.util.Log
public class EventDownlinkView<V> extends DownlinkView 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.downlink.DownlinkView
body, cellContext, flags, hostUri, KEEP_LINKED, KEEP_SYNCED, laneUri, meshUri, nodeUri, observers, prio, rate, 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)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.downlink.function.DidLink didLink)EventDownlinkView<V>didReceive(swim.api.downlink.function.DidReceive didReceive)EventDownlinkView<V>didSync(swim.api.downlink.function.DidSync didSync)EventDownlinkView<V>didUnlink(swim.api.downlink.function.DidUnlink didUnlink)protected 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.downlink.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.downlink.function.WillCommand willCommand)EventDownlinkView<V>willLink(swim.api.downlink.function.WillLink willLink)EventDownlinkView<V>willReceive(swim.api.downlink.function.WillReceive willReceive)EventDownlinkView<V>willSync(swim.api.downlink.function.WillSync willSync)EventDownlinkView<V>willUnlink(swim.api.downlink.function.WillUnlink willUnlink)-
Methods inherited from class swim.runtime.downlink.DownlinkView
body, cellContext, cipherSuite, close, command, command, debug, dispatchDidClose, dispatchDidConnect, dispatchDidDisconnect, dispatchDidFail, dispatchDidLink, dispatchDidReceive, dispatchDidSync, dispatchDidUnlink, dispatchWillCommand, dispatchWillLink, dispatchWillReceive, dispatchWillSync, dispatchWillUnlink, downlinkDidClose, downlinkDidConnect, downlinkDidDisconnect, downlinkDidFail, downlinkDidLink, downlinkDidReceive, downlinkDidSync, downlinkDidUnlink, downlinkWillCommand, downlinkWillLink, downlinkWillReceive, downlinkWillSync, downlinkWillUnlink, error, hostUri, info, isConnected, isRemote, isSecure, keepLinked, keepSynced, laneUri, localAddress, localCertificates, localIdentity, localPrincipal, meshUri, nodeUri, prio, rate, 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.downlink.Downlink
body, cipherSuite, close, command, command, debug, error, hostUri, info, isConnected, isRemote, isSecure, keepLinked, keepSynced, laneUri, localAddress, localCertificates, localIdentity, localPrincipal, nodeUri, prio, rate, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol, trace, warn
-
-
-
-
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 classDownlinkView
-
hostUri
public EventDownlinkView<V> hostUri(swim.uri.Uri hostUri)
- Specified by:
hostUriin interfaceswim.api.downlink.Downlink- Specified by:
hostUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
hostUriin classDownlinkView
-
hostUri
public EventDownlinkView<V> hostUri(String hostUri)
- Specified by:
hostUriin interfaceswim.api.downlink.Downlink- Specified by:
hostUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
hostUriin classDownlinkView
-
nodeUri
public EventDownlinkView<V> nodeUri(swim.uri.Uri nodeUri)
- Specified by:
nodeUriin interfaceswim.api.downlink.Downlink- Specified by:
nodeUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
nodeUriin classDownlinkView
-
nodeUri
public EventDownlinkView<V> nodeUri(String nodeUri)
- Specified by:
nodeUriin interfaceswim.api.downlink.Downlink- Specified by:
nodeUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
nodeUriin classDownlinkView
-
laneUri
public EventDownlinkView<V> laneUri(swim.uri.Uri laneUri)
- Specified by:
laneUriin interfaceswim.api.downlink.Downlink- Specified by:
laneUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
laneUriin classDownlinkView
-
laneUri
public EventDownlinkView<V> laneUri(String laneUri)
- Specified by:
laneUriin interfaceswim.api.downlink.Downlink- Specified by:
laneUriin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
laneUriin classDownlinkView
-
prio
public EventDownlinkView<V> prio(float prio)
- Specified by:
prioin interfaceswim.api.downlink.Downlink- Specified by:
prioin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
prioin classDownlinkView
-
rate
public EventDownlinkView<V> rate(float rate)
- Specified by:
ratein interfaceswim.api.downlink.Downlink- Specified by:
ratein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
ratein classDownlinkView
-
body
public EventDownlinkView<V> body(swim.structure.Value body)
- Specified by:
bodyin interfaceswim.api.downlink.Downlink- Specified by:
bodyin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
bodyin classDownlinkView
-
keepLinked
public EventDownlinkView<V> keepLinked(boolean keepLinked)
- Specified by:
keepLinkedin interfaceswim.api.downlink.Downlink- Specified by:
keepLinkedin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
keepLinkedin classDownlinkView
-
keepSynced
public EventDownlinkView<V> keepSynced(boolean keepSynced)
- Specified by:
keepSyncedin interfaceswim.api.downlink.Downlink- Specified by:
keepSyncedin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
keepSyncedin classDownlinkView
-
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.Downlink- Specified by:
observein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
observein interfaceswim.api.Link- Specified by:
observein interfaceswim.observable.Observable<V>- Overrides:
observein classDownlinkView
-
unobserve
public EventDownlinkView<V> unobserve(Object observer)
- Specified by:
unobservein interfaceswim.api.downlink.Downlink- Specified by:
unobservein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
unobservein interfaceswim.api.Link- Specified by:
unobservein interfaceswim.observable.Observable<V>- Overrides:
unobservein classDownlinkView
-
onEvent
public EventDownlinkView<V> onEvent(swim.api.downlink.function.OnEvent<V> onEvent)
- Specified by:
onEventin interfaceswim.api.downlink.EventDownlink<V>
-
willReceive
public EventDownlinkView<V> willReceive(swim.api.downlink.function.WillReceive willReceive)
- Specified by:
willReceivein interfaceswim.api.downlink.Downlink- Specified by:
willReceivein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willReceivein classDownlinkView
-
didReceive
public EventDownlinkView<V> didReceive(swim.api.downlink.function.DidReceive didReceive)
- Specified by:
didReceivein interfaceswim.api.downlink.Downlink- Specified by:
didReceivein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didReceivein classDownlinkView
-
willCommand
public EventDownlinkView<V> willCommand(swim.api.downlink.function.WillCommand willCommand)
- Specified by:
willCommandin interfaceswim.api.downlink.Downlink- Specified by:
willCommandin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willCommandin classDownlinkView
-
willLink
public EventDownlinkView<V> willLink(swim.api.downlink.function.WillLink willLink)
- Specified by:
willLinkin interfaceswim.api.downlink.Downlink- Specified by:
willLinkin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willLinkin classDownlinkView
-
didLink
public EventDownlinkView<V> didLink(swim.api.downlink.function.DidLink didLink)
- Specified by:
didLinkin interfaceswim.api.downlink.Downlink- Specified by:
didLinkin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didLinkin classDownlinkView
-
willSync
public EventDownlinkView<V> willSync(swim.api.downlink.function.WillSync willSync)
- Specified by:
willSyncin interfaceswim.api.downlink.Downlink- Specified by:
willSyncin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willSyncin classDownlinkView
-
didSync
public EventDownlinkView<V> didSync(swim.api.downlink.function.DidSync didSync)
- Specified by:
didSyncin interfaceswim.api.downlink.Downlink- Specified by:
didSyncin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didSyncin classDownlinkView
-
willUnlink
public EventDownlinkView<V> willUnlink(swim.api.downlink.function.WillUnlink willUnlink)
- Specified by:
willUnlinkin interfaceswim.api.downlink.Downlink- Specified by:
willUnlinkin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
willUnlinkin classDownlinkView
-
didUnlink
public EventDownlinkView<V> didUnlink(swim.api.downlink.function.DidUnlink didUnlink)
- Specified by:
didUnlinkin interfaceswim.api.downlink.Downlink- Specified by:
didUnlinkin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didUnlinkin classDownlinkView
-
didConnect
public EventDownlinkView<V> didConnect(swim.api.function.DidConnect didConnect)
- Specified by:
didConnectin interfaceswim.api.downlink.Downlink- Specified by:
didConnectin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didConnectin classDownlinkView
-
didDisconnect
public EventDownlinkView<V> didDisconnect(swim.api.function.DidDisconnect didDisconnect)
- Specified by:
didDisconnectin interfaceswim.api.downlink.Downlink- Specified by:
didDisconnectin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didDisconnectin classDownlinkView
-
didClose
public EventDownlinkView<V> didClose(swim.api.function.DidClose didClose)
- Specified by:
didClosein interfaceswim.api.downlink.Downlink- Specified by:
didClosein interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didClosein classDownlinkView
-
didFail
public EventDownlinkView<V> didFail(swim.api.function.DidFail didFail)
- Specified by:
didFailin interfaceswim.api.downlink.Downlink- Specified by:
didFailin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
didFailin classDownlinkView
-
dispatchOnEvent
protected boolean dispatchOnEvent(V value, boolean preemptive)
-
downlinkOnEvent
public void downlinkOnEvent(V value)
-
createDownlinkModel
public EventDownlinkModel createDownlinkModel()
- Specified by:
createDownlinkModelin classDownlinkView
-
open
public EventDownlinkView<V> open()
- Specified by:
openin interfaceswim.api.downlink.Downlink- Specified by:
openin interfaceswim.api.downlink.EventDownlink<V>- Specified by:
openin classDownlinkView
-
-