Table of Contents

Class Time

Namespace
Org.Apache.Kafka.Common.Utils
Assembly
MASES.KNet.dll
public class Time : JVMBridgeBase<Time>, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, ITime
Inheritance
Time
Implements
Inherited Members

Constructors

Time()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("Time class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Time()

Time(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("Time class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public Time(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

Java class name to be instantiated

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

true if the BridgeClassName is an abstract class, i.e. cannot be created an instance

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

true if the BridgeClassName implements Closeable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

true if the BridgeClassName is an interface, i.e. does not have any public constructor

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

true if the BridgeClassName is a static class, i.e. does not have any public constructor

public override bool IsBridgeStatic { get; }

Property Value

bool

SYSTEM

public static Time SYSTEM { get; }

Property Value

Time

Methods

HiResClockMs()

public long HiResClockMs()

Returns

long

long

Milliseconds()

public long Milliseconds()

Returns

long

long

Nanoseconds()

public long Nanoseconds()

Returns

long

long

Sleep(long)

public void Sleep(long arg0)

Parameters

arg0 long

long

Timer(Duration)

public Timer Timer(Duration arg0)

Parameters

arg0 Duration

Duration

Returns

Timer

Timer

Timer(long)

public Timer Timer(long arg0)

Parameters

arg0 long

long

Returns

Timer

Timer

WaitForFuture<T>(Future<T>, long)

public T WaitForFuture<T>(Future<T> arg0, long arg1)

Parameters

arg0 Future<T>

Future

arg1 long

long

Returns

T

T

Type Parameters

T

Exceptions

TimeoutException
InterruptedException
ExecutionException

WaitObject(object, Supplier<Boolean>, long)

public void WaitObject(object arg0, Supplier<Boolean> arg1, long arg2)

Parameters

arg0 object

object

arg1 Supplier<Boolean>

Supplier

arg2 long

long

Exceptions

InterruptedException