Source Code Cross Referenced for ClientLockManager.java in  » Net » Terracotta » com » tc » object » lockmanager » api » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Net » Terracotta » com.tc.object.lockmanager.api 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice.  All rights reserved.
003:         */
004:        package com.tc.object.lockmanager.api;
005:
006:        import com.tc.object.lockmanager.impl.GlobalLockInfo;
007:        import com.tc.object.session.SessionID;
008:        import com.tc.object.tx.WaitInvocation;
009:
010:        import java.util.Collection;
011:
012:        /**
013:         * Simple lock manager for the client
014:         *
015:         * @author steve
016:         */
017:        public interface ClientLockManager {
018:
019:            public void pause();
020:
021:            public void starting();
022:
023:            public void unpause();
024:
025:            public boolean isStarting();
026:
027:            /**
028:             * obtain a lock
029:             *
030:             * @param obj
031:             */
032:            public void lock(LockID id, ThreadID threadID, int type);
033:
034:            public boolean tryLock(LockID id, ThreadID threadID,
035:                    WaitInvocation timeout, int type);
036:
037:            /**
038:             * releases the lock so that others can have at it
039:             *
040:             * @param obj
041:             */
042:            public void unlock(LockID id, ThreadID threadID);
043:
044:            /**
045:             * awards the lock to the threadID
046:             */
047:            public void awardLock(SessionID sessionID, LockID id,
048:                    ThreadID threadID, int type);
049:
050:            public void cannotAwardLock(SessionID sessionID, LockID id,
051:                    ThreadID threadID, int type);
052:
053:            public LockID lockIDFor(String id);
054:
055:            public void wait(LockID lockID, ThreadID threadID,
056:                    WaitInvocation call, Object waitObject,
057:                    WaitListener listener) throws InterruptedException;
058:
059:            public void waitTimedOut(LockID lockID, ThreadID threadID);
060:
061:            /**
062:             * Returns true if this notification should be send to the server for handling. This nofication is not needed to be
063:             * sent to the server if all is false and we have notified 1 waiter locally.
064:             */
065:            public Notify notify(LockID lockID, ThreadID threadID, boolean all);
066:
067:            /**
068:             * Makes the lock wait for the given lock and thread a pending request.
069:             */
070:            public void notified(LockID lockID, ThreadID threadID);
071:
072:            /**
073:             * Recalls a greedy Lock that was awarded earlier
074:             */
075:            public void recall(LockID lockID, ThreadID threadID, int level);
076:
077:            /**
078:             * Adds all lock waits to the given collection and returns that collection.
079:             *
080:             * @param c
081:             */
082:            public Collection addAllWaitersTo(Collection c);
083:
084:            /**
085:             * Adds all held locks to the given collection and returns that collection.
086:             */
087:            public Collection addAllHeldLocksTo(Collection c);
088:
089:            /**
090:             * Causes all pending lock requests to be added to the collection.
091:             */
092:            public Collection addAllPendingLockRequestsTo(Collection c);
093:
094:            public Collection addAllPendingTryLockRequestsTo(Collection c);
095:
096:            public void runGC();
097:
098:            public int queueLength(LockID lockID, ThreadID threadID);
099:
100:            public int waitLength(LockID lockID, ThreadID threadID);
101:
102:            public int localHeldCount(LockID lockID, int lockLevel,
103:                    ThreadID threadID);
104:
105:            public boolean isLocked(LockID lockID, ThreadID threadID,
106:                    int lockLevel);
107:
108:            public void queryLockCommit(ThreadID threadID,
109:                    GlobalLockInfo globalLockInfo);
110:
111:            public void enableStat(LockID lockID, int lockStackTraceDepth,
112:                    int lockStatCollectFrequency);
113:
114:            public void disableStat(LockID lockID);
115:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.