Package org.epics.ca

Class Channels


  • public class Channels
    extends java.lang.Object
    Utility class to create and operate on channel
    • Constructor Summary

      Constructors 
      Constructor Description
      Channels()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void close​(java.lang.Object object)  
      static void create​(Context context, java.lang.Object object)
      Create annotate channels within object
      static void create​(Context context, java.lang.Object object, java.util.Map<java.lang.String,java.lang.String> macros)
      Create annotate channels within object
      static Channel<?> create​(Context context, java.lang.String name)  
      static <T> Channel<T> create​(Context context, java.lang.String name, java.lang.Class<T> type)  
      static java.util.List<Channel<?>> create​(Context context, java.util.List<ChannelDescriptor<?>> descriptors)  
      static <T> Channel<T> create​(Context context, ChannelDescriptor<T> descriptor)  
      static <T> void waitForValue​(Channel<T> channel, T value)  
      static <T> void waitForValue​(Channel<T> channel, T value, java.util.Comparator<T> comparator)  
      static <T> java.util.concurrent.CompletableFuture<T> waitForValueAsync​(Channel<T> channel, T value)  
      static <T> java.util.concurrent.CompletableFuture<T> waitForValueAsync​(Channel<T> channel, T value, java.util.Comparator<T> comparator)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Channels

        public Channels()
    • Method Detail

      • waitForValue

        public static <T> void waitForValue​(Channel<T> channel,
                                            T value)
      • waitForValue

        public static <T> void waitForValue​(Channel<T> channel,
                                            T value,
                                            java.util.Comparator<T> comparator)
      • waitForValueAsync

        public static <T> java.util.concurrent.CompletableFuture<T> waitForValueAsync​(Channel<T> channel,
                                                                                      T value)
      • waitForValueAsync

        public static <T> java.util.concurrent.CompletableFuture<T> waitForValueAsync​(Channel<T> channel,
                                                                                      T value,
                                                                                      java.util.Comparator<T> comparator)
      • create

        public static Channel<?> create​(Context context,
                                        java.lang.String name)
      • create

        public static <T> Channel<T> create​(Context context,
                                            java.lang.String name,
                                            java.lang.Class<T> type)
      • create

        public static void create​(Context context,
                                  java.lang.Object object)
        Create annotate channels within object
        Parameters:
        context - Context to create channels with
        object - Object with annotated channels
      • create

        public static void create​(Context context,
                                  java.lang.Object object,
                                  java.util.Map<java.lang.String,java.lang.String> macros)
        Create annotate channels within object
        Parameters:
        context - Context to create channels with
        object - Object with annotated channels
        macros - Macros to use to apply to the channel name - macros are specified via ${MACRO}.
      • close

        public static void close​(java.lang.Object object)