Class DetectFutureNettyImpl

  • All Implemented Interfaces:
    DetectFuture, DetectResults

    public class DetectFutureNettyImpl
    extends java.lang.Object
    implements DetectFuture

    DetectFutureNettyImpl class.

    CAUTION: This class is unused. This implementation has never been in production.
    Author:
    Seth
    • Constructor Detail

      • DetectFutureNettyImpl

        public DetectFutureNettyImpl​(AsyncBasicDetectorNettyImpl<?,​?> detector,
                                     org.jboss.netty.channel.ChannelFuture future)

        Constructor for DefaultDetectFuture.

        Parameters:
        detector - a AsyncServiceDetector object.
    • Method Detail

      • isServiceDetected

        public boolean isServiceDetected()

        isServiceDetected

        Specified by:
        isServiceDetected in interface DetectResults
        Returns:
        a boolean.
      • getServiceAttributes

        public java.util.Map<java.lang.String,​java.lang.String> getServiceAttributes()

        getServiceAttributes

        Specified by:
        getServiceAttributes in interface DetectResults
        Returns:
        a Map object.
      • getException

        public java.lang.Throwable getException()

        getException

        Specified by:
        getException in interface DetectFuture
        Returns:
        a Throwable object.
      • setServiceDetected

        public void setServiceDetected​(boolean serviceDetected)

        setServiceDetected

        Specified by:
        setServiceDetected in interface DetectFuture
        Parameters:
        serviceDetected - a boolean.
      • setException

        public void setException​(java.lang.Throwable throwable)

        setException

        Specified by:
        setException in interface DetectFuture
        Parameters:
        throwable - a Throwable object.
      • awaitFor

        public void awaitFor()
                      throws java.lang.InterruptedException
        Description copied from interface: DetectFuture

        awaitFor

        Specified by:
        awaitFor in interface DetectFuture
        Throws:
        java.lang.InterruptedException