com.hazelcast.jca.HazelcastConnection Maven / Gradle / Ivy
/*
* Copyright (c) 2008-2016, Hazelcast, Inc. All Rights Reserved.
*
* Licensed 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 com.hazelcast.jca;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.TransactionalList;
import com.hazelcast.core.TransactionalMap;
import com.hazelcast.core.TransactionalMultiMap;
import com.hazelcast.core.TransactionalQueue;
import com.hazelcast.core.TransactionalSet;
import javax.resource.cci.Connection;
/**
* Hazelcast specific connection which allows
* access to this hazelcast instance to acquire
* the maps, lists etc.
*/
public interface HazelcastConnection extends Connection, HazelcastInstance {
//Transactionals
/**
* @see com.hazelcast.transaction.TransactionalTaskContext#getMap(String)
*/
TransactionalMap getTransactionalMap(String name);
/**
* @see com.hazelcast.transaction.TransactionalTaskContext#getQueue(String)
*/
TransactionalQueue getTransactionalQueue(String name);
/**
* @see com.hazelcast.transaction.TransactionalTaskContext#getMultiMap(String)
*/
TransactionalMultiMap getTransactionalMultiMap(String name);
/**
* @see com.hazelcast.transaction.TransactionalTaskContext#getList(String)
*/
TransactionalList getTransactionalList(String name);
/**
* @see com.hazelcast.transaction.TransactionalTaskContext#getSet(String)
*/
TransactionalSet getTransactionalSet(String name);
}