Index
All Classes and Interfaces|All Packages|Serialized Form
A
- add(int) - Method in class io.javago.sync.WaitGroup
 - 
Increments the count of this wait group by the specified amount.
 - addCase(InputChannel<T>, Consumer<T>) - Method in class io.javago.Selector
 - 
Adds an
InputChannelCaseto the selector. - addCase(OutputChannel<T>, T, Runnable) - Method in class io.javago.Selector
 - 
Adds an
OutputChannelCaseto the selector. - addCase(Duration, Runnable) - Method in class io.javago.Selector
 - 
Adds a
DelayedCaseto the selector. - addDefault(Runnable) - Method in class io.javago.Selector
 - 
Adds a default case to the selector.
 - await() - Method in class io.javago.sync.WaitGroup
 - 
Causes the current thread to wait until the count of this wait group reaches zero.
 
B
- BufferedQueueChannel<T> - Class in io.javago
 - 
The
BufferedQueueChannelclass is an implementation of theChannelinterface, providing a Gochannelbacked by a Queue for passing messages between threads. - BufferedQueueChannel() - Constructor for class io.javago.BufferedQueueChannel
 - 
Constructs a
BufferedQueueChannelwith a default capacity of 1. - BufferedQueueChannel(int) - Constructor for class io.javago.BufferedQueueChannel
 - 
Constructs a
BufferedQueueChannelwith the specified capacity. 
C
- Channel<T> - Interface in io.javago
 - 
The
Channelinterface defines the operations to create Go'schannelin Java that can send and receive messages of a specified type. - close() - Method in class io.javago.BufferedQueueChannel
 - 
Closes the channel.
 - close() - Method in interface io.javago.Channel
 - 
Closes the channel.
 - close() - Method in interface io.javago.InputChannel
 - 
Closes the channel.
 - close() - Method in interface io.javago.OutputChannel
 - 
Closes the channel.
 - close() - Method in class io.javago.sync.WaitGroup
 - 
Decrements the count of this wait group by one.
 - compareAndDelete(K, V) - Method in class io.javago.sync.Map
 - 
Removes the entry for a key only if currently mapped to a given value.
 - compareAndSwap(K, V, V) - Method in class io.javago.sync.Map
 - 
Replaces the entry for a key only if currently mapped to a given value.
 
D
- DelayedCase - Class in io.javago
 - 
The
DelayedCaseclass is used to create the timeout case found in Go'sselectstatement. - DelayedCase(Duration, Runnable, OutputChannel<Integer>, int, AtomicBoolean) - Constructor for class io.javago.DelayedCase
 - 
Constructs a
DelayedCasewith the specified delay, callback, output channel, identifier, and closed state. - delete(K) - Method in class io.javago.sync.Map
 - 
Removes the mapping for a key from this map if it is present.
 - done() - Method in class io.javago.sync.WaitGroup
 - 
Decrements the count of this wait group by one.
 - doOnce(Runnable) - Method in class io.javago.sync.Once
 - 
Executes the specified
Runnableonly once. 
E
- equals(Object) - Method in record class io.javago.sync.OnceValues.Values
 - 
Indicates whether some other object is "equal to" this one.
 
F
- first() - Method in record class io.javago.sync.OnceValues.Values
 - 
Returns the value of the
firstrecord component. 
G
- get() - Method in class io.javago.sync.OnceValue
 - 
Executes the wrapped
Supplieronly once. - get() - Method in class io.javago.sync.OnceValues
 - 
Executes the wrapped
Supplieronly once. - get() - Method in class io.javago.sync.Pool
 - 
Retrieves an object from the pool.
 - go(Runnable) - Static method in class io.javago.Go
 - 
Executes the given task asynchronously using the thread pool.
 - Go - Class in io.javago
 - 
The
Goclass implements Go'sgostatement. 
H
- hashCode() - Method in record class io.javago.sync.OnceValues.Values
 - 
Returns a hash code value for this object.
 - hasNext() - Method in class io.javago.BufferedQueueChannel
 - 
Waits until the channel has another message or is closed.
 - hasNext() - Method in interface io.javago.Channel
 - 
Waits until the channel has another message.
 - hasNext() - Method in interface io.javago.InputChannel
 - 
Waits until the channel has another message.
 - hasNext() - Method in interface io.javago.OutputChannel
 - 
Waits until the channel has another message.
 - hasSpace() - Method in class io.javago.BufferedQueueChannel
 - 
Waits until the channel has space for another message or is closed.
 - hasSpace() - Method in interface io.javago.Channel
 - 
Waits until the channel has space for another message or is closed.
 - hasSpace() - Method in interface io.javago.InputChannel
 - 
Waits until the channel has space for another message or is closed.
 - hasSpace() - Method in interface io.javago.OutputChannel
 - 
Waits until the channel has space for another message or is closed.
 
I
- InputChannel<T> - Interface in io.javago
 - 
The
InputChannelinterface defines the operations for a Gochannelin Java that can receive messages of a specified type. - InputChannelCase<T> - Class in io.javago
 - 
The
InputChannelCaseclass is used by theSelectorclass to create a case that is run when a message is received from the case's channel. - InputChannelCase(InputChannel<T>, Consumer<T>, OutputChannel<Integer>, int, AtomicBoolean) - Constructor for class io.javago.InputChannelCase
 - 
Constructs an
InputChannelCasewith the specified input channel, callback, output channel, identifier, and closed state. - io.javago - package io.javago
 - 
Provides Java class implementing core Go concurrency features such as the
goandselectkeywords and channels. - io.javago.sync - package io.javago.sync
 - 
Provides Java classes implementing the types and functions found in Go's
syncpackage. - isClosed() - Method in class io.javago.BufferedQueueChannel
 - 
Checks if the channel is closed.
 - isClosed() - Method in interface io.javago.Channel
 - 
Checks if the channel is closed.
 - isClosed() - Method in interface io.javago.InputChannel
 - 
Checks if the channel is closed.
 - isClosed() - Method in interface io.javago.OutputChannel
 - 
Checks if the channel is closed.
 - isEmpty() - Method in class io.javago.BufferedQueueChannel
 - 
Checks if the channel is empty.
 - isEmpty() - Method in interface io.javago.Channel
 - 
Checks if the channel is empty.
 - isEmpty() - Method in interface io.javago.InputChannel
 - 
Checks if the channel is empty.
 - isEmpty() - Method in interface io.javago.OutputChannel
 - 
Checks if the channel is empty.
 - isFull() - Method in class io.javago.BufferedQueueChannel
 - 
Checks if the channel is full.
 - isFull() - Method in interface io.javago.Channel
 - 
Checks if the channel is full.
 - isFull() - Method in interface io.javago.InputChannel
 - 
Checks if the channel is full.
 - isFull() - Method in interface io.javago.OutputChannel
 - 
Checks if the channel is full.
 - iterator() - Method in class io.javago.BufferedQueueChannel
 - 
Returns an iterator over the elements in this channel.
 
L
- load(K) - Method in class io.javago.sync.Map
 - 
Returns the value to which the specified key is mapped, or
nullif this map contains no mapping for the key. - loadAndDelete(K) - Method in class io.javago.sync.Map
 - 
Removes the mapping for a key from this map if it is present and returns the associated value.
 - loadOrStore(K, V) - Method in class io.javago.sync.Map
 - 
If the specified key is not already associated with a value, associates it with the given value and returns
null, else returns the current value. 
M
- make() - Static method in interface io.javago.Channel
 - 
Creates a new channel with a default capacity.
 - make() - Static method in interface io.javago.InputChannel
 - 
Creates a new channel with a default capacity.
 - make() - Static method in interface io.javago.OutputChannel
 - 
Creates a new channel with a default capacity.
 - make(int) - Static method in interface io.javago.Channel
 - 
Creates a new channel with the specified capacity.
 - make(int) - Static method in interface io.javago.InputChannel
 - 
Creates a new channel with the specified capacity.
 - make(int) - Static method in interface io.javago.OutputChannel
 - 
Creates a new channel with the specified capacity.
 - Map<K,
V> - Class in io.javago.sync - 
The
Mapclass implements Go'ssync.Map. - Map() - Constructor for class io.javago.sync.Map
 - 
Creates a new, empty map with the default initial capacity, load factor, and concurrency level.
 - Map(int) - Constructor for class io.javago.sync.Map
 - 
Creates a new, empty map with the specified initial capacity, and with the default load factor and concurrency level.
 - Map(int, float) - Constructor for class io.javago.sync.Map
 - 
Creates a new, empty map with the specified initial capacity and load factor, and with the default concurrency level.
 - Map(int, float, int) - Constructor for class io.javago.sync.Map
 - 
Creates a new, empty map with the specified initial capacity, load factor, and concurrency level.
 - Map(Map<? extends K, ? extends V>) - Constructor for class io.javago.sync.Map
 - 
Creates a new map with the same mappings as the specified map.
 
O
- Once - Class in io.javago.sync
 - 
The
Onceclass implements Go'ssync.Once. - Once() - Constructor for class io.javago.sync.Once
 - 
Constructs a new
Onceinstance. - OnceFunc - Class in io.javago.sync
 - 
The
OnceFuncclass implements Go'ssync.OnceFunc. - OnceFunc(Runnable) - Constructor for class io.javago.sync.OnceFunc
 - 
Constructs a new
OnceFuncthat will wrap the givenRunnable. - OnceValue<T> - Class in io.javago.sync
 - 
The
OnceValueclass implements Go'ssync.OnceValue. - OnceValue(Supplier<T>) - Constructor for class io.javago.sync.OnceValue
 - 
Constructs a new
OnceValuethat will wrap the givenSupplier. - OnceValues<S,
T> - Class in io.javago.sync - 
The
OnceValuesclass implements Go'ssync.OnceValues. - OnceValues(Supplier<OnceValues.Values<S, T>>) - Constructor for class io.javago.sync.OnceValues
 - 
Constructs a new
OnceValuesthat will wrap the givenSupplier. - OnceValues.Values<S,
T> - Record Class in io.javago.sync - 
A record that holds a pair of values.
 - OutputChannel<T> - Interface in io.javago
 - 
The
OutputChannelinterface defines the operations for a Gochannelin Java that can send messages of a specified type. - OutputChannelCase<T> - Class in io.javago
 - 
The
OutputChannelCaseclass is used by theSelectorclass to create a case that is run when a message is sent to the case's channel. - OutputChannelCase(OutputChannel<T>, T, Runnable, OutputChannel<Integer>, int, AtomicBoolean) - Constructor for class io.javago.OutputChannelCase
 - 
Constructs an
OutputChannelCasewith the specified output channel, message, callback, output channel for selector, identifier, and closed state. 
P
- Pool<T> - Class in io.javago.sync
 - 
The
Poolclass implements Go'ssync.Pool. - Pool(Supplier<T>) - Constructor for class io.javago.sync.Pool
 - 
Constructs a new
Poolwith the given object creator. - put(T) - Method in class io.javago.sync.Pool
 - 
Returns an object to the pool, making it available for future retrieval.
 
R
- range(BiConsumer<? super K, ? super V>) - Method in class io.javago.sync.Map
 - 
Performs the given action for each entry in this map until all entries have been processed or the action throws an exception.
 - receive() - Method in class io.javago.BufferedQueueChannel
 - 
Receives a message from the channel.
 - receive() - Method in interface io.javago.Channel
 - 
Receives a message from the channel, waiting if necessary for a message to be sent.
 - receive() - Method in interface io.javago.InputChannel
 - 
Receives a message from the channel, waiting if necessary for a message to be sent.
 - run() - Method in class io.javago.DelayedCase
 - 
Runs the delayed task.
 - run() - Method in class io.javago.InputChannelCase
 - 
Runs the input channel case.
 - run() - Method in class io.javago.OutputChannelCase
 - 
Runs the output channel case.
 - run() - Method in class io.javago.Selector
 - 
Executes the selector logic.
 - run() - Method in class io.javago.sync.OnceFunc
 - 
Executes the wrapped
Runnableonly once. 
S
- second() - Method in record class io.javago.sync.OnceValues.Values
 - 
Returns the value of the
secondrecord component. - select() - Static method in class io.javago.Selector
 - 
Static factory method to create a new instance of
Selector. - Selector - Class in io.javago
 - 
The
Selectorclass implements Go'sselectstatement. - send(T) - Method in class io.javago.BufferedQueueChannel
 - 
Sends a message through the channel.
 - send(T) - Method in interface io.javago.Channel
 - 
Sends a message through the channel, waiting if necessary for space to become available.
 - send(T) - Method in interface io.javago.OutputChannel
 - 
Sends a message through the channel, waiting if necessary for space to become available.
 - store(K, V) - Method in class io.javago.sync.Map
 - 
Associates the specified value with the specified key in this map.
 - swap(K, V) - Method in class io.javago.sync.Map
 - 
Associates the specified value with the specified key in this map and returns the previous value associated with the key, or
nullif there was no mapping for the key. 
T
- toString() - Method in record class io.javago.sync.OnceValues.Values
 - 
Returns a string representation of this record class.
 
V
- Values(S, T) - Constructor for record class io.javago.sync.OnceValues.Values
 - 
Creates an instance of a
Valuesrecord class. 
W
- WaitGroup - Class in io.javago.sync
 - 
The
WaitGroupclass implements Go'ssync.WaitGroup. - WaitGroup() - Constructor for class io.javago.sync.WaitGroup
 - 
Constructs a new
WaitGroupwith an initial count of zero. 
All Classes and Interfaces|All Packages|Serialized Form