ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/tribes/transport/DataSender.java

Path
ttomcat-1778514358873.zip-extract/apache-tomcat-11.0.18-src/java/org/apache/catalina/tribes/transport/DataSender.java
Status
scanned
Type
file
Name
DataSender.java
Extension
.java
Programming language
Java
Mime type
text/plain
File type
ASCII text, with CRLF line terminators
Tag

      
    
Rootfs path

      
    
Size
2239 (2.2 KB)
MD5
54e4c0e73873b3668bd38320244f4be5
SHA1
9b7b21f966df17b680e9e4a94c035a144e680cf5
SHA256
3f93b2c0ee256242d51d978063d32bd00812347f227737abf26bd5f0e0a8026b
SHA512

      
    
SHA1_git
a45c376a76695c4b6a012fe7437f3c339d9a6f47
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
DataSender.java | 2.2 KB |

/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.catalina.tribes.transport; import java.io.IOException; public interface DataSender { /** * Connect. * * @throws IOException when an error occurs */ void connect() throws IOException; /** * Disconnect. */ void disconnect(); /** * @return {@code true} if connected */ boolean isConnected(); /** * Set the receive buffer size. * * @param size the new size */ void setRxBufSize(int size); /** * Set the transmit buffer size. * * @param size the new size */ void setTxBufSize(int size); /** * Keepalive. * * @return {@code true} if kept alive */ boolean keepalive(); /** * Set the socket timeout. * * @param timeout in ms */ void setTimeout(long timeout); /** * Set the amount of requests during which to keepalive. * * @param maxRequests the amount of requests */ void setKeepAliveCount(int maxRequests); /** * Set the keepalive time. * * @param keepAliveTimeInMs the time in ms */ void setKeepAliveTime(long keepAliveTimeInMs); /** * @return the request count */ int getRequestCount(); /** * @return the time to connect */ long getConnectTime(); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
47.98
Copyrights

      
    
Holders

      
    
Authors

      
    
License detections License expression License expression SPDX
apache_2_0-4bde3f57-78aa-4201-96bf-531cba09e7de apache-2.0 Apache-2.0
URL Start line End line
http://www.apache.org/licenses/LICENSE-2.0 9 9