INNER CODE UNIT · Java

releaseGameTransactionLock

jwpttcg66/redis-game-transaction · src/main/java/com/redis/transaction/GameTransaction.java:125

    public void releaseGameTransactionLock() {
        for(GameTransactionEntityInterface entity:entities){
            entity.releaseGameTransactionLock();
        }
    }

    /**
     * 获取事务信息
     * @return
     */
    public String getTransactionInfo(){
        StringBuffer buffer = new StringBuffer();
        buffer.append("transaction ");
        buffer.append(getCause());
        buffer.append(":");
        for(int i = 0; i < entities.size(); i++){
            GameTransactionEntityInterface entity = entities.get(i);
            buffer.append(entity.getInfo());

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…