Class InstanceMatch.Builder<B extends InstanceMatch.Builder<?>>

  • Direct Known Subclasses:
    ServerQuery
    Enclosing class:
    InstanceMatch

    public static class InstanceMatch.Builder<B extends InstanceMatch.Builder<?>>
    extends Object
    • Method Detail

      • application

        public B application​(String application)
      • query

        public B query​(Map<String,​Object> query)
        Can be used to guarantee specific fields within the instance match.
        Parameters:
        query - contains fields to be matched
        Returns:
        this builder, never null
        Since:
        1.3
      • user

        public B user​(String user)
      • machine

        public B machine​(String machine)
      • localOnly

        public B localOnly​(boolean localOnly)
        Flag whether or not the search should include remote instances. true is the default setting and only includes local instances in the search. Likewise, false overrides it and expands the search to include remote instances.
        Parameters:
        localOnly - if only local instances should be considered in search
        Returns:
        this builder, never null
        Since:
        1.3