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

io.journalkeeper.rpc.client.GetOpeningTransactionsResponse Maven / Gradle / Ivy

/**
 * 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 io.journalkeeper.rpc.client; import io.journalkeeper.core.api.transaction.JournalKeeperTransactionContext; import io.journalkeeper.rpc.LeaderResponse; import java.util.Collection; /** * 创建事务的响应 */ public class GetOpeningTransactionsResponse extends LeaderResponse { private final Collection transactionContexts; public GetOpeningTransactionsResponse(Throwable throwable) { this(throwable, null); } public GetOpeningTransactionsResponse(Collection transactionIds) { this(null, transactionIds); } private GetOpeningTransactionsResponse(Throwable exception, Collection transactionIds) { super(exception); this.transactionContexts = transactionIds; } /** * 新创建的事务ID * @return 事务ID */ public Collection getTransactionContexts() { return transactionContexts; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy