- java.lang.Object
-
- swim.system.DownlinkView
-
- swim.system.warp.WarpDownlinkView
-
- All Implemented Interfaces:
Downlink
,Link
,WarpDownlink
,WarpLink
,Observable<Object>
,Log
- Direct Known Subclasses:
EventDownlinkView
,ListDownlinkView
,MapDownlinkView
,ValueDownlinkView
public abstract class WarpDownlinkView extends DownlinkView implements WarpDownlink
-
-
Field Summary
Fields Modifier and Type Field Description protected Value
body
protected int
flags
protected Uri
hostUri
protected static int
KEEP_LINKED
protected static int
KEEP_SYNCED
protected Uri
laneUri
protected Uri
meshUri
protected Uri
nodeUri
protected float
prio
protected float
rate
-
Fields inherited from class swim.system.DownlinkView
cellContext, observers, stage
-
-
Constructor Summary
Constructors Constructor Description WarpDownlinkView(CellContext cellContext, Stage stage, Uri meshUri, Uri hostUri, Uri nodeUri, Uri laneUri, float prio, float rate, Value body, int flags, Object observers)
-
Method Summary
-
Methods inherited from class swim.system.DownlinkView
cellContext, cipherSuite, close, 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, close, isConnected, isRemote, isSecure, localAddress, localCertificates, localIdentity, localPrincipal, remoteAddress, remoteCertificates, remoteIdentity, remotePrincipal, securityProtocol
-
-
-
-
Field Detail
-
meshUri
protected final Uri meshUri
-
hostUri
protected final Uri hostUri
-
nodeUri
protected final Uri nodeUri
-
laneUri
protected final Uri laneUri
-
prio
protected final float prio
-
rate
protected final float rate
-
body
protected final Value body
-
flags
protected volatile int flags
-
KEEP_LINKED
protected static final int KEEP_LINKED
- See Also:
- Constant Field Values
-
KEEP_SYNCED
protected static final int KEEP_SYNCED
- See Also:
- Constant Field Values
-
-
Method Detail
-
downlinkModel
public abstract WarpDownlinkModel<?> downlinkModel()
- Specified by:
downlinkModel
in classDownlinkView
-
meshUri
public final Uri meshUri()
-
hostUri
public abstract WarpDownlinkView hostUri(Uri hostUri)
- Specified by:
hostUri
in interfaceWarpDownlink
-
hostUri
public abstract WarpDownlinkView hostUri(String hostUri)
- Specified by:
hostUri
in interfaceWarpDownlink
-
nodeUri
public abstract WarpDownlinkView nodeUri(Uri nodeUri)
- Specified by:
nodeUri
in interfaceWarpDownlink
-
nodeUri
public abstract WarpDownlinkView nodeUri(String nodeUri)
- Specified by:
nodeUri
in interfaceWarpDownlink
-
laneUri
public abstract WarpDownlinkView laneUri(Uri laneUri)
- Specified by:
laneUri
in interfaceWarpDownlink
-
laneUri
public abstract WarpDownlinkView laneUri(String laneUri)
- Specified by:
laneUri
in interfaceWarpDownlink
-
prio
public final float prio()
- Specified by:
prio
in interfaceWarpDownlink
-
prio
public abstract WarpDownlinkView prio(float prio)
- Specified by:
prio
in interfaceWarpDownlink
-
rate
public final float rate()
- Specified by:
rate
in interfaceWarpDownlink
-
rate
public abstract WarpDownlinkView rate(float rate)
- Specified by:
rate
in interfaceWarpDownlink
-
body
public final Value body()
- Specified by:
body
in interfaceWarpDownlink
-
body
public abstract WarpDownlinkView body(Value body)
- Specified by:
body
in interfaceWarpDownlink
-
keepLinked
public final boolean keepLinked()
- Specified by:
keepLinked
in interfaceWarpDownlink
-
keepLinked
public abstract WarpDownlinkView keepLinked(boolean keepLinked)
- Specified by:
keepLinked
in interfaceWarpDownlink
-
keepSynced
public final boolean keepSynced()
- Specified by:
keepSynced
in interfaceWarpDownlink
-
keepSynced
public abstract WarpDownlinkView keepSynced(boolean keepSynced)
- Specified by:
keepSynced
in interfaceWarpDownlink
-
observe
public WarpDownlinkView observe(Object observer)
- Specified by:
observe
in interfaceDownlink
- Specified by:
observe
in interfaceLink
- Specified by:
observe
in interfaceObservable<Object>
- Specified by:
observe
in interfaceWarpDownlink
- Overrides:
observe
in classDownlinkView
-
unobserve
public WarpDownlinkView unobserve(Object observer)
- Specified by:
unobserve
in interfaceDownlink
- Specified by:
unobserve
in interfaceLink
- Specified by:
unobserve
in interfaceObservable<Object>
- Specified by:
unobserve
in interfaceWarpDownlink
- Overrides:
unobserve
in classDownlinkView
-
willReceive
public abstract WarpDownlinkView willReceive(WillReceive willReceive)
- Specified by:
willReceive
in interfaceWarpDownlink
-
didReceive
public abstract WarpDownlinkView didReceive(DidReceive didReceive)
- Specified by:
didReceive
in interfaceWarpDownlink
-
willCommand
public abstract WarpDownlinkView willCommand(WillCommand willCommand)
- Specified by:
willCommand
in interfaceWarpDownlink
-
willLink
public abstract WarpDownlinkView willLink(WillLink willLink)
- Specified by:
willLink
in interfaceWarpDownlink
-
didLink
public abstract WarpDownlinkView didLink(DidLink didLink)
- Specified by:
didLink
in interfaceWarpDownlink
-
willSync
public abstract WarpDownlinkView willSync(WillSync willSync)
- Specified by:
willSync
in interfaceWarpDownlink
-
didSync
public abstract WarpDownlinkView didSync(DidSync didSync)
- Specified by:
didSync
in interfaceWarpDownlink
-
willUnlink
public abstract WarpDownlinkView willUnlink(WillUnlink willUnlink)
- Specified by:
willUnlink
in interfaceWarpDownlink
-
didUnlink
public abstract WarpDownlinkView didUnlink(DidUnlink didUnlink)
- Specified by:
didUnlink
in interfaceWarpDownlink
-
didConnect
public abstract WarpDownlinkView didConnect(DidConnect didConnect)
- Specified by:
didConnect
in interfaceDownlink
- Specified by:
didConnect
in interfaceWarpDownlink
- Specified by:
didConnect
in classDownlinkView
-
didDisconnect
public abstract WarpDownlinkView didDisconnect(DidDisconnect didDisconnect)
- Specified by:
didDisconnect
in interfaceDownlink
- Specified by:
didDisconnect
in interfaceWarpDownlink
- Specified by:
didDisconnect
in classDownlinkView
-
didClose
public abstract WarpDownlinkView didClose(DidClose didClose)
- Specified by:
didClose
in interfaceDownlink
- Specified by:
didClose
in interfaceWarpDownlink
- Specified by:
didClose
in classDownlinkView
-
didFail
public abstract WarpDownlinkView didFail(DidFail didFail)
- Specified by:
didFail
in interfaceDownlink
- Specified by:
didFail
in interfaceWarpDownlink
- Specified by:
didFail
in classDownlinkView
-
dispatchWillReceive
public boolean dispatchWillReceive(Value body, boolean preemptive)
-
dispatchDidReceive
public boolean dispatchDidReceive(Value body, boolean preemptive)
-
dispatchWillCommand
public boolean dispatchWillCommand(Value body, boolean preemptive)
-
dispatchWillLink
public boolean dispatchWillLink(boolean preemptive)
-
dispatchDidLink
public boolean dispatchDidLink(boolean preemptive)
-
dispatchWillSync
public boolean dispatchWillSync(boolean preemptive)
-
dispatchDidSync
public boolean dispatchDidSync(boolean preemptive)
-
dispatchWillUnlink
public boolean dispatchWillUnlink(boolean preemptive)
-
dispatchDidUnlink
public boolean dispatchDidUnlink(boolean preemptive)
-
downlinkWillReceive
public void downlinkWillReceive(EventMessage message)
-
downlinkDidReceive
public void downlinkDidReceive(EventMessage message)
-
downlinkWillCommand
public void downlinkWillCommand(CommandMessage message)
-
downlinkWillLink
public void downlinkWillLink(LinkRequest request)
-
downlinkDidLink
public void downlinkDidLink(LinkedResponse response)
-
downlinkWillSync
public void downlinkWillSync(SyncRequest request)
-
downlinkDidSync
public void downlinkDidSync(SyncedResponse response)
-
downlinkWillUnlink
public void downlinkWillUnlink(UnlinkRequest request)
-
downlinkDidUnlink
public void downlinkDidUnlink(UnlinkedResponse response)
-
createDownlinkModel
public abstract WarpDownlinkModel<?> createDownlinkModel()
- Specified by:
createDownlinkModel
in classDownlinkView
-
open
public abstract WarpDownlinkView open()
- Specified by:
open
in interfaceDownlink
- Specified by:
open
in interfaceWarpDownlink
- Specified by:
open
in classDownlinkView
-
command
public void command(float prio, Value body, Cont<CommandMessage> cont)
- Specified by:
command
in interfaceWarpDownlink
-
command
public void command(Value body, Cont<CommandMessage> cont)
- Specified by:
command
in interfaceWarpDownlink
-
command
public void command(float prio, Value body)
- Specified by:
command
in interfaceWarpDownlink
-
command
public void command(Value body)
- Specified by:
command
in interfaceWarpDownlink
-
-