1 24 25 package org.objectweb.perseus.concurrency.distributed.globallock; 26 27 import org.objectweb.perseus.concurrency.distributed.AbstractLockingAction; 28 import org.objectweb.perseus.concurrency.distributed.globallock.api.GlobalLock; 29 30 31 public class Downgrade extends AbstractLockingAction { 32 private GlobalLock h; 33 34 52 public Downgrade(GlobalLockInterceptor h, byte execMode, byte lck) { 53 super(h.getName(), GRANTED_BYUSER, execMode, lck); 54 this.h = h; 55 } 56 protected void performBlockingAction() throws Exception { 57 h.downgrade(lck); 58 } 59 60 61 protected String getBrief() { 62 return "D"; 63 } 64 65 protected String getLockingDescription() { 66 return "downgrade"; 67 } 68 } 69 | Popular Tags |