public class TimeBaseObject extends DObject
Note that for sufficiently small delta time containers, stale values could still linger longer than the time required for two swaps (two byte delta stamps for example, must swap every 30 seconds).
Streamable.Closure| Modifier and Type | Field and Description |
|---|---|
static String |
EVEN_BASE
The field name of the
evenBase field. |
long |
evenBase
The even time base, used to decode even delta times.
|
static String |
ODD_BASE
The field name of the
oddBase field. |
long |
oddBase
The odd time base, used to decode odd delta times.
|
| Constructor and Description |
|---|
TimeBaseObject() |
| Modifier and Type | Method and Description |
|---|---|
long |
fromDelta(int delta)
Converts the supplied delta time back to a wall time based on the
base time in this time base object.
|
void |
setEvenBase(long value)
Requests that the
evenBase field be set to the
specified value. |
void |
setOddBase(long value)
Requests that the
oddBase field be set to the
specified value. |
int |
toIntDelta(long timeStamp)
Converts the supplied time stamp into a time delta (measured
relative to the appropriate time base, even or odd) with maximum
value of 2^31.
|
short |
toShortDelta(long timeStamp)
Converts the supplied time stamp into a time delta (measured
relative to the appropriate time base, even or odd) with maximum
value of 2^15.
|
acquireLock, addListener, addListener, addSubscriber, addToSet, cancelTransaction, changeAttribute, checkPermissions, checkPermissions, commitTransaction, destroy, getAccessController, getAttribute, getLocal, getLocals, getManager, getOid, getSet, inTransaction, isActive, notifyListeners, notifyProxies, postEvent, postMessage, postMessage, releaseLock, removeFromSet, removeListener, removeSubscriber, setAccessController, setAttribute, setDestroyOnLastSubscriberRemoved, setLocal, setManager, setOid, startTransaction, toString, updateSet, which@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String EVEN_BASE
evenBase field.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public static final String ODD_BASE
oddBase field.public long evenBase
public long oddBase
public short toShortDelta(long timeStamp)
public int toIntDelta(long timeStamp)
public long fromDelta(int delta)
@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setEvenBase(long value)
evenBase field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.@Generated(value="com.threerings.presents.tools.GenDObjectTask") public void setOddBase(long value)
oddBase field be set to the
specified value. The local value will be updated immediately and an
event will be propagated through the system to notify all listeners
that the attribute did change. Proxied copies of this object (on
clients) will apply the value change when they received the
attribute changed notification.Copyright © 2015. All rights reserved.