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

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

      
    
Rootfs path

      
    
Size
3348 (3.3 KB)
MD5
b24ff087fdd68dc9df378969bdf6926b
SHA1
0a3014afda3ed4c53f687a7cd172a74ab4712312
SHA256
aa7ca2edbb491920f7c4a6835b7e3c68575a3ae67948fc261c9ffeda51206a6d
SHA512

      
    
SHA1_git
a9f6d8f978c477d4c9a725415a4d7d1b3739acd4
Is binary

      
    
Is text
True
Is archive

      
    
Is media

      
    
Is legal

      
    
Is manifest

      
    
Is readme

      
    
Is top level

      
    
Is key file

      
    
ChannelMessage.java | 3.3 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; import java.io.Serializable; import org.apache.catalina.tribes.io.XByteBuffer; /** * Message that is passed through the interceptor stack after the data serialized in the Channel object and then passed * down to the interceptor and eventually down to the ChannelSender component. */ public interface ChannelMessage extends Serializable, Cloneable { /** * Get the address that this message originated from. Almost always <code>Channel.getLocalMember(boolean)</code>. * This would be set to a different address if the message was being relayed from a host other than the one that * originally sent it. * * @return the source or reply-to address of this message */ Member getAddress(); /** * Sets the source or reply-to address of this message * * @param member Member */ void setAddress(Member member); /** * Timestamp of when the message was created. * * @return long timestamp in milliseconds */ long getTimestamp(); /** * Sets the timestamp of this message. * * @param timestamp The timestamp */ void setTimestamp(long timestamp); /** * Each message must have a globally unique Id. interceptors heavily depend on this id for message processing * * @return byte */ byte[] getUniqueId(); /** * The byte buffer that contains the actual message payload * * @param buf XByteBuffer */ void setMessage(XByteBuffer buf); /** * returns the byte buffer that contains the actual message payload * * @return XByteBuffer */ XByteBuffer getMessage(); /** * The message options is a 32 bit flag set that triggers interceptors and message behavior. * * @see Channel#send(Member[], Serializable, int) * @see ChannelInterceptor#getOptionFlag * * @return int - the option bits set for this message */ int getOptions(); /** * sets the option bits for this message * * @param options int * * @see #getOptions() */ void setOptions(int options); /** * Shallow clone, what gets cloned depends on the implementation * * @return ChannelMessage */ Object clone(); /** * Deep clone, all fields MUST get cloned * * @return ChannelMessage */ Object deepclone(); }
Detected license expression
apache-2.0
Detected license expression (SPDX)
Apache-2.0
Percentage of license text
30.51
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