Class ChannelSelect.Result

java.lang.Object
groovy.concurrent.ChannelSelect.Result
Enclosing class:
ChannelSelect

public static final class ChannelSelect.Result extends Object
The result of a ChannelSelect.select() operation, indicating which channel produced the value.
Since:
6.0.0
  • Method Details

    • getIndex

      public int getIndex()
      The zero-based index of the channel that produced the value.
    • getValue

      public <T> T getValue()
      The received value.
    • toString

      public String toString()
      Returns a diagnostic representation of this selection result.
      Overrides:
      toString in class Object
      Returns:
      the selection result description