    001    /*
    002     * Copyright 2010 Red Hat, Inc.
    003     * Red Hat licenses this file to you under the Apache License, version
    004     * 2.0 (the "License"); you may not use this file except in compliance
    005     * with the License.  You may obtain a copy of the License at
    006     *    http://www.apache.org/licenses/LICENSE-2.0
    007     * Unless required by applicable law or agreed to in writing, software
    008     * distributed under the License is distributed on an "AS IS" BASIS,
    009     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
    010     * implied.  See the License for the specific language governing
    011     * permissions and limitations under the License.
    012     */
    013
    014    package org.hornetq.spi.core.protocol;
    015
    016    import java.util.concurrent.Executor;
    017
    018
    019    /**
    020     * A ConnectionEntry
    021     *
    022     * @author Tim Fox
    023     *
    024     *
    025     */
    026    public class ConnectionEntry
    027    {
    028       public final RemotingConnection connection;
    029
    030       public volatile long lastCheck;
    031
    032       public volatile long ttl;
    033
    034       public final Executor connectionExecutor;
    035
    036       public ConnectionEntry(final RemotingConnection connection, final Executor connectionExecutor, final long lastCheck, final long ttl)
    037       {
    038          this.connection = connection;
    039
    040          this.lastCheck = lastCheck;
    041
    042          this.ttl = ttl;
    043
    044          this.connectionExecutor = connectionExecutor;
    045       }
    046    }