All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.sun.xml.ws.rx.rm.runtime.LocalIDManager Maven / Gradle / Ivy

There is a newer version: 4.0.4
Show newest version
/*
 * Copyright (c) 1997, 2018 Oracle and/or its affiliates. All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Distribution License v. 1.0, which is available at
 * http://www.eclipse.org/org/documents/edl-v10.php.
 *
 * SPDX-License-Identifier: BSD-3-Clause
 */

package com.sun.xml.ws.rx.rm.runtime;

import java.util.*;

public interface LocalIDManager {
    abstract void createLocalID(String localID, String sequenceID, long messageNumber); 
    abstract void removeLocalIDs(Iterator localIDs); 
    abstract BoundMessage getBoundMessage(String localID);
    /**
     * Mark all the localIDs associated the specified sequenceID terminated
     * @param sequenceID
     */
    abstract void markSequenceTermination(String sequenceID);
    public class BoundMessage {
        final public String sequenceID;
        final public long messageNumber;
        final public long createTime;
        final public long seqTerminateTime;
        public BoundMessage(String sequenceID, long messageNumber, long createTime, long seqTerminateTime) {
            this.sequenceID = sequenceID;
            this.messageNumber = messageNumber;
            this.createTime = createTime;
            this.seqTerminateTime = seqTerminateTime;
        }
        public String toString() {
            return "BoundMessage [sequenceID=" + sequenceID
                    + ", messageNumber=" + messageNumber + ", createTime="
                    + createTime + ", seqTerminateTime=" + seqTerminateTime
                    + "]";
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy