com.neeve.link
Enum ILnkRootEndpoint.ThreadingModel

java.lang.Object
  extended by java.lang.Enum<ILnkRootEndpoint.ThreadingModel>
      extended by com.neeve.link.ILnkRootEndpoint.ThreadingModel
All Implemented Interfaces:
Serializable, Comparable<ILnkRootEndpoint.ThreadingModel>
Enclosing interface:
ILnkRootEndpoint

public static enum ILnkRootEndpoint.ThreadingModel
extends Enum<ILnkRootEndpoint.ThreadingModel>

Endpoint threading models.


Enum Constant Summary
mtrmtw
          Indicates the the link tree's read machinery and the writes through the endpoint are driven by a set of concurrently executing threads.
mtrstw
          Indicates the the link tree's read machinery is driven by a set of concurrently executing threads and a single thread is used to write through the endpoint.
strmtw
          Indicates the the link tree's read machinery is driven by a single thread but the writes are driven by multiple concurrently executing threads.
strstw
          Indicates the the link tree's read machinery is driven by a single thread and a single thread is used to write through the endpoint with these threads potentially being different.
strw
          Inidicates the link tree is operated entirely (read and write) using a single thread.
 
Field Summary
 int val
          Numeric value assigned to the threading model to compare strictness.
 
Method Summary
static int compareTo(ILnkRootEndpoint.ThreadingModel tm1, ILnkRootEndpoint.ThreadingModel tm2)
          Compare two threading models.
static ILnkRootEndpoint.ThreadingModel valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ILnkRootEndpoint.ThreadingModel[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

strw

public static final ILnkRootEndpoint.ThreadingModel strw
Inidicates the link tree is operated entirely (read and write) using a single thread.


strstw

public static final ILnkRootEndpoint.ThreadingModel strstw
Indicates the the link tree's read machinery is driven by a single thread and a single thread is used to write through the endpoint with these threads potentially being different.


strmtw

public static final ILnkRootEndpoint.ThreadingModel strmtw
Indicates the the link tree's read machinery is driven by a single thread but the writes are driven by multiple concurrently executing threads.


mtrstw

public static final ILnkRootEndpoint.ThreadingModel mtrstw
Indicates the the link tree's read machinery is driven by a set of concurrently executing threads and a single thread is used to write through the endpoint.


mtrmtw

public static final ILnkRootEndpoint.ThreadingModel mtrmtw
Indicates the the link tree's read machinery and the writes through the endpoint are driven by a set of concurrently executing threads.

Field Detail

val

public final int val
Numeric value assigned to the threading model to compare strictness.

Method Detail

values

public static ILnkRootEndpoint.ThreadingModel[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (ILnkRootEndpoint.ThreadingModel c : ILnkRootEndpoint.ThreadingModel.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static ILnkRootEndpoint.ThreadingModel valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

compareTo

public static final int compareTo(ILnkRootEndpoint.ThreadingModel tm1,
                                  ILnkRootEndpoint.ThreadingModel tm2)
Compare two threading models.

Parameters:
tm1 - The first threading model
tm2 - The second threading model
Returns:
Returns 0 if both the threading models are the same. Returns < 0 if the threading model tm1 is stricter than tm2. Returns > 0 is tm2 is stricter than tm1.


Copyright © 2015 Neeve Research, LLC. All Rights Reserved.