Coverage Report - org.mule.transport.tcp.PollingTcpConnector
 
Classes in this File Line Coverage Branch Coverage Complexity
PollingTcpConnector
0%
0/8
N/A
1
 
 1  
 /*
 2  
  * $Id: PollingTcpConnector.java 20320 2010-11-24 15:03:31Z dfeist $
 3  
  * --------------------------------------------------------------------------------------
 4  
  * Copyright (c) MuleSoft, Inc.  All rights reserved.  http://www.mulesoft.com
 5  
  *
 6  
  * The software in this package is published under the terms of the CPAL v1.0
 7  
  * license, a copy of which has been included with this distribution in the
 8  
  * LICENSE.txt file.
 9  
  */
 10  
 
 11  
 package org.mule.transport.tcp;
 12  
 
 13  
 import org.mule.api.MuleContext;
 14  
 import org.mule.api.config.MuleProperties;
 15  
 
 16  
 import java.util.Properties;
 17  
 
 18  
 /**
 19  
  * <code>PollingTcpMessageReceiver</code> acts as a polling TCP connector.
 20  
  * 
 21  
  * @author esteban.robles
 22  
  */
 23  
 public class PollingTcpConnector extends TcpConnector
 24  
 {
 25  
     /**
 26  
      * How long to wait in milliseconds between make a new request
 27  
      */
 28  0
     private long pollingFrequency = 1000L;
 29  
 
 30  
     public PollingTcpConnector(MuleContext context)
 31  
     {
 32  0
             super(context);
 33  0
         serviceOverrides = new Properties();
 34  0
         serviceOverrides.setProperty(MuleProperties.CONNECTOR_MESSAGE_RECEIVER_CLASS,
 35  
             PollingTcpMessageReceiver.class.getName());
 36  0
     }
 37  
 
 38  
     public long getPollingFrequency()
 39  
     {
 40  0
         return pollingFrequency;
 41  
     }
 42  
 
 43  
     public void setPollingFrequency(long pollingFrequency)
 44  
     {
 45  0
         this.pollingFrequency = pollingFrequency;
 46  0
     }
 47  
 }