Package: com.multiversesocial.hyperview
Class: com.multiversesocial.hyperview.DisconnectTimer
Source: src/com/multiversesocial/hyperview/DisconnectTimer.java

DisconnectTimer

HyperView V3.2 — class
version V3.2 class

Summary

----------------------------------------- DisConnectTimer checks to see if non activity disconnect time has expired abd also

Source file: DisconnectTimer.java

Hierarchy

Extends: SystemTimer

Implements: DisconnectTimerConstants

Referenced HyperView classes

Media files used

Declaration & members

public class DisconnectTimer extends SystemTimer implements DisconnectTimerConstants

Declared in src/com/multiversesocial/hyperview/DisconnectTimer.java, lines 9–403. 14 field(s), 1 constructor(s), 4 method(s). Every member has an anchor you can link to (e.g. DisconnectTimer.html#<id>).

Fields (14)

DeclarationValue / initializerDescriptionSource
static final byte[] crLF= {(byte)'\r', (byte)'\n'}No comment in source; name appears in 1 other source file(s): DumpGobs.line 26
HyperDisconnectHandler disconnectHandlerNo comment in source; assigned in DisconnectTimer(); used in function().line 14
volatile int dtmFlagsNo comment in source; assigned in DisconnectTimer(), function().line 11
HyperNBInputHandler inputHandlerNo comment in source; assigned in DisconnectTimer().line 13
HyperLinkedList ioAddListNo comment in source; assigned in DisconnectTimer(); used in function().line 15
int lastConnectionNumberNo comment in source; assigned in DisconnectTimer().line 23
Object masterSocketChannelLockShared locksline 22
HyperLinkedList nodeExceptionListNo comment in source; assigned in DisconnectTimer(); used in function().line 18
HyperLinkedList nodeExceptionProcessListNo comment in source; assigned in DisconnectTimer(); used in function().line 19
HyperLinkedList nodeExceptionReturnListNo comment in source; assigned in DisconnectTimer(); used in function().line 20
HyperNBOutputHandler outputHandlerNo comment in source; assigned in DisconnectTimer().line 12
byte[] pingNo comment in source; assigned in DisconnectTimer(), function().line 25
Runtime runTimeNo comment in source; assigned in DisconnectTimer(); used in showMemory().line 16
byte startedNo comment in source; assigned in DisconnectTimer(), function().line 24

Constructors (1)

SignatureDescriptionSource
DisconnectTimer(int tTimeoutSeconds, HyperConnectionHandler tParentHandler)15 statement(s); calls super(), setTimerRepeat(), Runtime.getRuntime(); creates HyperLinkedList.line 28

Methods (4)

SignatureDescriptionSource
static { … }Implicit default constructor generated by the compiler (not written in the source).implicit
public void function()22 statement(s); calls tHyperConnectionNode.getWriteVector(), Integer.toString(), tWriteVector.writeBuffer.clear(), tWriteVector.writeBuffer.put(), tWriteVector.writeBuffer.flip() ….
Overrides SystemTimer.function()
line 72
void pause(int millis)1 statement(s); calls Thread.sleep().line 392
void showMemory()6 statement(s); calls runTime.freeMemory(), runTime.maxMemory(), runTime.totalMemory().line 381

Inherited members

Non-private members inherited from HyperView superclasses and not overridden or hidden here.

From SystemTimer (14 fields, 5 methods)

Fields: checkTime, count, DEFAULT_TIMEOUT, iteration, notifier, number, ST_THREAD_ENA, ST_TIMED_OUT, ST_TIMER_REPEAT, systemClock, task, timeout, tmFlags, uniqueID

Methods: run(), setNotify(Object), setTimerRepeat(boolean), start(), stop()

From Linkable (7 fields, 2 methods)

Fields: attachment, index, linkFlags, name, next, parentList, prev

Methods: inList(), setName(String)

Examples

Real usage taken from elsewhere in the HyperView 3.2 source (file and line shown; source path src/com/multiversesocial/hyperview/).

instantiation — HyperConnectionHandler.java, line 168

  168  disconnectTimer = new DisconnectTimer(DisconnectTimerConstants.CHECK_SECONDS,(HyperConnectionHandler)this);
Hits--