org.apache.camel.component.hazelcast.HazelcastConstants Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of camel-hazelcast Show documentation
Show all versions of camel-hazelcast Show documentation
Camel HazelCast based work queue implementation
The newest version!
/*
* 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.camel.component.hazelcast;
import org.apache.camel.spi.Metadata;
public final class HazelcastConstants {
/**
* All the schemes
*/
public static final String SCHEME_ATOMIC_VALUE = "hazelcast-atomicvalue";
public static final String SCHEME_INSTANCE = "hazelcast-instance";
public static final String SCHEME_LIST = "hazelcast-list";
public static final String SCHEME_MAP = "hazelcast-map";
public static final String SCHEME_MULTIMAP = "hazelcast-multimap";
public static final String SCHEME_QUEUE = "hazelcast-queue";
public static final String SCHEME_REPLICATED_MAP = "hazelcast-replicatedmap";
public static final String SCHEME_RING_BUFFER = "hazelcast-ringbuffer";
public static final String SCHEME_SEDA = "hazelcast-seda";
public static final String SCHEME_SET = "hazelcast-set";
public static final String SCHEME_TOPIC = "hazelcast-topic";
/*
* uri prefixes
*/
public static final String MAP_PREFIX = "map:";
public static final String MULTIMAP_PREFIX = "multimap:";
public static final String REPLICATEDMAP_PREFIX = "replicatedmap:";
public static final String ATOMICNUMBER_PREFIX = "atomicvalue:";
public static final String INSTANCE_PREFIX = "instance:";
public static final String QUEUE_PREFIX = "queue:";
public static final String TOPIC_PREFIX = "topic:";
public static final String SEDA_PREFIX = "seda:";
public static final String LIST_PREFIX = "list:";
public static final String SET_PREFIX = "set:";
public static final String RINGBUFFER_PREFIX = "ringbuffer:";
/*
* incoming header properties
*/
@Metadata(description = "the object id to store / find your object inside the cache", javaType = "String", applicableFor = {
SCHEME_MULTIMAP, SCHEME_REPLICATED_MAP, SCHEME_LIST, SCHEME_QUEUE, SCHEME_SET, SCHEME_MAP, SCHEME_TOPIC })
public static final String OBJECT_ID = "CamelHazelcastObjectId";
@Metadata(label = "producer", description = "The index of the object", javaType = "Integer", applicableFor = SCHEME_LIST)
public static final String OBJECT_POS = "CamelHazelcastObjectIndex";
@Metadata(label = "producer", description = "The old value", javaType = "Object", applicableFor = SCHEME_MAP)
public static final String OBJECT_VALUE = "CamelHazelcastObjectValue";
@Metadata(label = "producer", description = "The value of the TTL", javaType = "Integer", applicableFor = SCHEME_MAP)
public static final String TTL_VALUE = "CamelHazelcastObjectTtlValue";
@Metadata(label = "producer", description = "The value of time unit ( DAYS / HOURS / MINUTES / ....",
javaType = "java.util.concurrent.TimeUnit", applicableFor = SCHEME_MAP)
public static final String TTL_UNIT = "CamelHazelcastObjectTtlUnit";
@Metadata(label = "producer",
description = "The query to execute against the map with a sql like syntax (see http://www.hazelcast.com/)",
javaType = "String", applicableFor = SCHEME_MAP)
public static final String QUERY = "CamelHazelcastQuery";
public static final String EXPECTED_VALUE = "CamelHazelcastExpectedValue";
@Metadata(label = "producer", description = "The collection to transfer elements into", javaType = "Collection",
applicableFor = SCHEME_QUEUE)
public static final String DRAIN_TO_COLLECTION = "CamelHazelcastDrainToCollection";
/*
* outgoing header properties
*/
@Metadata(label = "consumer", description = "The type of event - here *added* and *removed*", javaType = "String",
applicableFor = {
SCHEME_MULTIMAP, SCHEME_REPLICATED_MAP, SCHEME_LIST, SCHEME_QUEUE, SCHEME_SET, SCHEME_MAP, SCHEME_TOPIC,
SCHEME_INSTANCE })
public static final String LISTENER_ACTION = "CamelHazelcastListenerAction";
@Metadata(label = "consumer", description = "The map consumer", javaType = "String",
applicableFor = {
SCHEME_MULTIMAP, SCHEME_REPLICATED_MAP, SCHEME_LIST, SCHEME_QUEUE, SCHEME_SET, SCHEME_MAP, SCHEME_TOPIC,
SCHEME_INSTANCE })
public static final String LISTENER_TYPE = "CamelHazelcastListenerType";
@Metadata(label = "consumer", description = "The time of the event in millis", javaType = "Long",
applicableFor = {
SCHEME_MULTIMAP, SCHEME_REPLICATED_MAP, SCHEME_LIST, SCHEME_QUEUE, SCHEME_SET, SCHEME_MAP, SCHEME_TOPIC,
SCHEME_INSTANCE })
public static final String LISTENER_TIME = "CamelHazelcastListenerTime";
@Metadata(label = "consumer", description = "The host name of the instance", javaType = "String",
applicableFor = SCHEME_INSTANCE)
public static final String INSTANCE_HOST = "CamelHazelcastInstanceHost";
@Metadata(label = "consumer", description = "The port number of the instance", javaType = "Integer",
applicableFor = SCHEME_INSTANCE)
public static final String INSTANCE_PORT = "CamelHazelcastInstancePort";
@Metadata(label = "consumer", description = "The name of the cache - e.g. \"foo\"", javaType = "String", applicableFor = {
SCHEME_MULTIMAP, SCHEME_REPLICATED_MAP, SCHEME_LIST, SCHEME_QUEUE, SCHEME_SET, SCHEME_MAP, SCHEME_TOPIC })
public static final String CACHE_NAME = "CamelHazelcastCacheName";
@Metadata(description = "The type of the cache - here multimap", javaType = "String", applicableFor = SCHEME_MULTIMAP)
public static final String CACHE_TYPE = "CamelHazelcastCacheType";
// actions (PUT, DELETE, GET, GET_ALL, UPDATE, CLEAR)
@Metadata(label = "producer", description = "The operation to perform", javaType = "String",
applicableFor = {
SCHEME_MULTIMAP, SCHEME_REPLICATED_MAP, SCHEME_LIST, SCHEME_QUEUE, SCHEME_SET, SCHEME_MAP, SCHEME_TOPIC,
SCHEME_ATOMIC_VALUE, SCHEME_RING_BUFFER })
public static final String OPERATION = "CamelHazelcastOperationType";
/**
* @deprecated use {@link HazelcastOperation#PUT}
*/
@Deprecated
public static final String PUT_OPERATION = "put";
/**
* @deprecated use {@link HazelcastOperation#DELETE}
*/
@Deprecated
public static final String DELETE_OPERATION = "delete";
/**
* @deprecated use {@link HazelcastOperation#GET}
*/
@Deprecated
public static final String GET_OPERATION = "get";
/**
* @deprecated use {@link HazelcastOperation#UPDATE}
*/
@Deprecated
public static final String UPDATE_OPERATION = "update";
/**
* @deprecated use {@link HazelcastOperation#QUERY}
*/
@Deprecated
public static final String QUERY_OPERATION = "query";
/**
* @deprecated use {@link HazelcastOperation#GET_ALL}
*/
@Deprecated
public static final String GET_ALL_OPERATION = "getAll";
/**
* @deprecated use {@link HazelcastOperation#CLEAR}
*/
@Deprecated
public static final String CLEAR_OPERATION = "clear";
/**
* @deprecated use {@link HazelcastOperation#PUT_IF_ABSENT}
*/
@Deprecated
public static final String PUT_IF_ABSENT_OPERATION = "putIfAbsent";
/**
* @deprecated use {@link HazelcastOperation#ADD_ALL}
*/
@Deprecated
public static final String ADD_ALL_OPERATION = "addAll";
/**
* @deprecated use {@link HazelcastOperation#REMOVE_ALL}
*/
@Deprecated
public static final String REMOVE_ALL_OPERATION = "removeAll";
/**
* @deprecated use {@link HazelcastOperation#RETAIN_ALL}
*/
@Deprecated
public static final String RETAIN_ALL_OPERATION = "retailAll";
/**
* @deprecated use {@link HazelcastOperation#EVICT}
*/
@Deprecated
public static final String EVICT_OPERATION = "evict";
/**
* @deprecated use {@link HazelcastOperation#EVICT_ALL}
*/
@Deprecated
public static final String EVICT_ALL_OPERATION = "evictAll";
/**
* @deprecated use {@link HazelcastOperation#VALUE_COUNT}
*/
@Deprecated
public static final String VALUE_COUNT_OPERATION = "valueCount";
/**
* @deprecated use {@link HazelcastOperation#CONTAINS_KEY}
*/
@Deprecated
public static final String CONTAINS_KEY_OPERATION = "containsKey";
/**
* @deprecated use {@link HazelcastOperation#CONTAINS_VALUE}
*/
@Deprecated
public static final String CONTAINS_VALUE_OPERATION = "containsValue";
/**
* @deprecated use {@link HazelcastOperation#GET_KEYS}
*/
@Deprecated
public static final String GET_KEYS_OPERATION = "keySet";
// multimap
/**
* @deprecated use {@link HazelcastOperation#REMOVE_VALUE}
*/
@Deprecated
public static final String REMOVEVALUE_OPERATION = "removevalue";
// atomic numbers
/**
* @deprecated use {@link HazelcastOperation#INCREMENT}
*/
@Deprecated
public static final String INCREMENT_OPERATION = "increment";
/**
* @deprecated use {@link HazelcastOperation#DECREMENT}
*/
@Deprecated
public static final String DECREMENT_OPERATION = "decrement";
/**
* @deprecated use {@link HazelcastOperation#SET_VALUE}
*/
@Deprecated
public static final String SETVALUE_OPERATION = "setvalue";
/**
* @deprecated use {@link HazelcastOperation#DESTROY}
*/
@Deprecated
public static final String DESTROY_OPERATION = "destroy";
/**
* @deprecated use {@link HazelcastOperation#COMPARE_AND_SET}
*/
@Deprecated
public static final String COMPARE_AND_SET_OPERATION = "compareAndSet";
/**
* @deprecated use {@link HazelcastOperation#GET_AND_ADD}
*/
@Deprecated
public static final String GET_AND_ADD_OPERATION = "getAndAdd";
// queue
/**
* @deprecated use {@link HazelcastOperation#ADD}
*/
@Deprecated
public static final String ADD_OPERATION = "add";
/**
* @deprecated use {@link HazelcastOperation#OFFER}
*/
@Deprecated
public static final String OFFER_OPERATION = "offer";
/**
* @deprecated use {@link HazelcastOperation#PEEK}
*/
@Deprecated
public static final String PEEK_OPERATION = "peek";
/**
* @deprecated use {@link HazelcastOperation#POLL}
*/
@Deprecated
public static final String POLL_OPERATION = "poll";
/**
* @deprecated use {@link HazelcastOperation#REMAINING_CAPACITY}
*/
@Deprecated
public static final String REMAINING_CAPACITY_OPERATION = "remainingCapacity";
/**
* @deprecated use {@link HazelcastOperation#DRAIN_TO}
*/
@Deprecated
public static final String DRAIN_TO_OPERATION = "drainTo";
// topic
/**
* @deprecated use {@link HazelcastOperation#PUBLISH}
*/
@Deprecated
public static final String PUBLISH_OPERATION = "publish";
// ring_buffer
/**
* @deprecated use {@link HazelcastOperation#READ_ONCE_HEAD}
*/
@Deprecated
public static final String READ_ONCE_HEAD_OPERATION = "readOnceHead";
/**
* @deprecated use {@link HazelcastOperation#READ_ONCE_TAIL}
*/
@Deprecated
public static final String READ_ONCE_TAIL_OPERATION = "readOnceTail";
/**
* @deprecated use {@link HazelcastOperation#CAPACITY}
*/
@Deprecated
public static final String GET_CAPACITY_OPERATION = "capacity";
/*
* header values
*/
// listener actions
public static final String REMOVED = "removed";
public static final String EVICTED = "evicted";
public static final String EXPIRED = "expired";
public static final String UPDATED = "updated";
public static final String ADDED = "added";
// message listener actions (topic)
public static final String RECEIVED = "received";
// storage types (map, queue, topic, multimap)
public static final String MAP = "map";
public static final String MULTIMAP = "multimap";
public static final String ATOMICNUMBER = "atomicnumber";
public static final String QUEUE = "queue";
// listener types
public static final String CACHE_LISTENER = "cachelistener";
public static final String INSTANCE_LISTENER = "instancelistener";
public static final String ITEM_LISTENER = "itemlistener";
// parameter names
public static final String OPERATION_PARAM = "operation";
public static final String HAZELCAST_INSTANCE_NAME_PARAM = "hazelcastInstanceName";
public static final String HAZELCAST_INSTANCE_PARAM = "hazelcastInstance";
public static final String HAZELCAST_CONFIGU_PARAM = "hazelcastConfig";
public static final String HAZELCAST_CONFIGU_URI_PARAM = "hazelcastConfigUri";
// Hazelcast mode
public static final String HAZELCAST_NODE_MODE = "node";
public static final String HAZELCAST_CLIENT_MODE = "client";
private HazelcastConstants() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy