/* *************************************************************************************** * Copyright (C) 2006 EsperTech, Inc. All rights reserved. * * http://www.espertech.com/esper * * http://www.espertech.com * * ---------------------------------------------------------------------------------- * * The software in this package is published under the terms of the GPL license * * a copy of which has been included with this distribution in the license.txt file. * *************************************************************************************** */ package com.espertech.esper.client.context; import java.io.Serializable; /** * Context partition identifiers are provided by the API when interrogating context partitions for a given statement. */ public abstract class ContextPartitionIdentifier implements Serializable { private static final long serialVersionUID = -3830160350591466831L; private Integer contextPartitionId; /** * Compare identifiers returning a boolean indicator whether identifier information matches. * * @param identifier to compare to * @return true for objects identifying the same context partition (could be different context) */ public abstract boolean compareTo(ContextPartitionIdentifier identifier); /** * Ctor. */ public ContextPartitionIdentifier() { } /** * Returns the context partition id. * * @return context partition id */ public Integer getContextPartitionId() { return contextPartitionId; } /** * Sets the context partition id - this set method is for engine-internal use. * * @param contextPartitionId context partition id */ public void setContextPartitionId(Integer contextPartitionId) { this.contextPartitionId = contextPartitionId; } }