Package java.util.concurrent.atomic
A small toolkit of classes that support lock-free thread-safe
programming on single variables.
Group items matching
in title, tags, annotations or url
9More
shared by Rinav G on 17 Sep 10
-
Cached
Overview (Java Platform SE 6) - 0 views
download.oracle.com/...index.html
java platform java.util.concurrent.atomic concurrent AutomicInteger


-
A small toolkit of classes that support lock-free thread-safe programming on single variables. In essence, the classes in this package extend the notion of volatile values, fields, and array elements to those that also provide an atomic conditional update operation of the form: boolean compareAndSet(expectedValue, updateValue);
-
Atomic classes are not general purpose replacements for java.lang.Integer and related classes. They do not define methods such as hashCode and compareTo. (Because atomic variables are expected to be mutated, they are poor choices for hash table keys.)
- ...4 more annotations...
-
The specifications of these methods enable implementations to employ efficient machine-level atomic instructions that are available on contemporary processors.
-
java.util.concurrent.atomic Class AtomicInteger java.lang.Object java.lang.Number java.util.concurrent.atomic.AtomicInteger
-
An int value that may be updated atomically. See the java.util.concurrent.atomic package specification for description of the properties of atomic variables. An AtomicInteger is used in applications such as atomically incremented counters, and cannot be used as a replacement for an Integer. However, this class does extend Number to allow uniform access by tools and utilities that deal with numerically-based classes.
-
int incrementAndGet() Atomically increments by one the current value.
-
-
Package java.util.concurrent.atomic Description A small toolkit of classes that support lock-free thread-safe programming on single variables. In essence, the classes in this package extend the notion of volatile values, fields, and array elements to those that also provide an atomic conditional update operation of the form: boolean compareAndSet(expectedValue, updateValue);
1More
shared by Hendy Irawan on 09 Oct 10
- Cached
LiquiBase | Database Refactoring | home - 0 views
www.liquibase.org
java sql jdbc tools opensource database db schema tool refactoring versioning development

-
Database Change Management You never develop code without version control, why do you develop your database without it? Liquibase is an open source (Apache 2.0 Licensed), database-independent library for tracking, managing and applying database changes. It is built on a simple premise: All database changes are stored in a human readable yet trackable form and checked into source control. Liquibase Supports: Extensibility Merging changes from multiple developers Code branches Multiple Databases Managing production data as well as various test datasets Cluster-safe database upgrades Automated updates or generation of SQL scripts that can be approved and applied by a DBA update rollbacks Database "diff"s Generating starting change logs from existing database
151More
Getting Started with RequestFactory - Google Web Toolkit - Google Code - 0 views
-
Entity Proxies
- ...147 more annotations...
-
BigDecimal, BigInteger, Boolean, Byte, Enum, Character, Date, Double, Float, Integer, Long, Short, String, Void
-
Methods that return a Request object in the client interface are implemented as static methods on the entity
-
backing store (JDO, JPA, etc.) is responsible for updating the version each time the object is persisted,
-
On the client side, RequestFactory keeps track of objects that have been modified and sends only changes
-
automatically populates bean-style properties between entities on the server and the corresponding EntityProxy on the client,
-
It is not necessary to represent every property and method from the server-side entity in the EntityProxy
1More
shared by Paul Sydney Orozco on 25 Nov 10
- No Cached
How to Add CRUD Capability On Spring MVC using Hibernate JPA - 0 views
www.adobocode.com/...-crud-capability-to-spring-mvc
crud create read update delete spring mvc hibernate jpa saving editing mysql annotation

5More
ResultSet (Java 2 Platform SE 5.0) - 0 views
-
to insert column values into the insert row. An updatable ResultSet object has a special row associated with it that serves as a staging area for building a row to be inserted. The following code fragment moves the cursor to the insert row, builds a three-column row, and inserts it into rs and into the data source table using the method insertRow
- ...1 more annotation...
-
to insert column values into the insert row. An updatable ResultSet object has a special row associated with it that serves as a staging area for building a row to be inserted. The following code fragment moves the cursor to the insert row, builds a three-column row, and inserts it into rs and into the data source table using the method insertRow.
2More
Installation Instructions - Eclipse Subversive - 0 views
-
d Eclipse is rebooted, Subversive automatically displays the dialog that shows Subversive SVN Connectors compatible with the installed version of the plug-in. Alternatively, you can install Subversive SVN Connectors from online and archived update sites for connectors. Visit Polarion.com, to get information about the available update sites.
1More
AutoPatch - 0 views
-
With AutoPatch, an agile development process that requires a database change looks like this: Developer alters the model, which requires a change to the database Developer possibly consults a DBA, and develops a SQL patch against their personal database that implements the alteration Developer commits the patch to source control at the same time as they commit their dependent code Other developers' and environments' databases are automatically updated by AutoPatch the next time the new source is run This represents streamlined environment maintenance, allowing developers to cheaply have their own databases and all databases to stay in synch with massively lower costs and no environment skew. That's what AutoPatch does. Clusters with one database? Multiple schemas? Logical migrations, instead of just DDL changes? Need to do something special/custom? Need to distribute your changes commercially? All without paying anything? No problem.
96More
Large scale application development and MVP - Part II - Google Web Toolkit - Google Code - 0 views
-
itself
- ...91 more annotations...
-
contactsView.setColumnDefiniions(
-
columnDefinitions = new ArrayList<ColumnDefinition<ContactDetails>>()
-
Inefficiencies related to inserting new elements via DOM manipulation Overhead associated with sinking events per Widget
1More
shared by Hendy Irawan on 24 Apr 11
- No Cached
Ajax Push - Overview - ICEfaces - ICEfaces.org Community Wiki - 0 views
wiki.icefaces.org/...Ajax+Push+-+Overview
ajax push overview community icefaces application jsf java javaee web

-
Ajax Push allows the application to incrementally update any part of the page at any time, for any group of clients. This is a small change in terms of the technical capabilities of Ajax applications, but it is a revolutionary change in terms of what applications can actually provide to users. Ajax Push is the key to building collaborative multi-user applications for the web. Under the Hood The intricacies of the Ajax Push implementation are completely transparent to the ICEfaces developer, as you work with a straightforward set of APIs. It is, however, useful to understand the basic mechanics. Ajax Push in ICEfaces 2.0 leverages an asynchronous notification mechanism call ICEpush. Simply put, ICEpush uses long polling to provide asynchronous notification over standard HTTP, using only standard browser capabilities. The sequence of events involved in Ajax Push is illustrated below.
1More
Eclipse Gemini Blueprint - Home - 0 views
-
Eclipse Gemini Blueprint is the reference implementation for the OSGi Alliance Blueprint Service (chapter 121 of the OSGi 4.2 Compendium Specification). Gemini Blueprint project makes it easy to build Java applications that run in an OSGi framework. By using Gemini Blueprint, applications benefit from using a better separation of modules, the ability to dynamically add, remove, and update modules in a running system, the ability to deploy multiple versions of a module simultaneously (and have clients automatically bind to the appropriate one), and a dynamic service model. Gemini users may also be interested in Eclipse Virgo, an open source, completely modular, OSGi-based Java application server. Its documentation is considered a supplement to Gemini Blueprint as it explains in detail, how OSGi can be used in various development and production scenarios.
1More
eik - Eclipse Integration for Apache Karaf runtimes - Google Project Hosting - 0 views
-
Eclipse Integration for Karaf is the integration of the Apache Karaf application platform and the Eclipse IDE. Notable features include: An Eclipse Run/Debug launcher configuration that configures Karaf to run inside the workbench transparently to the developer Automatic deployment of workspace plugin projects to running Karaf instances without copying files A Target Platform Definition that allows developers to target only the bundles found in Karaf distributions A Target Platform Provisioner that automatically constructs a target platform from any Karaf distribution on the user's local disk JMX instrumentation of the Running/Debugging Karaf instance. Eclipse views that display the Bundle and Service status of Karaf instances Experimental features: Web Tools Platform integration including: Karaf server runtime with associated classpath maintenance Karaf runtime locator that scans local disks for compatible Karaf distributions Install from the EIK Update Site
Java SE 6 Update 10 Beta Overview - 0 views
Java 7, JDK 7, Java SE 7 News, Update | tutego - 0 views
17More
JavaBlogging » What is serialVersionUID? - 2 views
-
and it is still there even after the program finished. Let’s see if we can read that file once again, this time without creating it first.
-
Now, let’s see what happens, when we change the serialVersionUID value and try to deserialize once again our file. Change the line 2 in the class SerializeMe so that serialVersionUID contains now 2 instead of 1:
- ...13 more annotations...
-
As you can see, this time the deserialization didn’t go well. ObjectInputStream complained about the serialVersionUID being changed.
-
How does he know that it changed? If serialVersinUID is static, then it should not have been serialized in the first place, and there should be no information about the previous value 1 during the deserialization, right? Well, serialVersionUID is an exception to the rule that “static fields don’t get serialized”.
-
Moreover, if there is no serialVersionUID officially declared in the class to be serialized, compiler automatically adds it with a value generated based on the fields declared in the class.
-
The deserialization of that object does not necessarily have to occur exactly after serialization. It can occur after a few months or on a completely different JVM
-
It checks if the data read from the input stream is compatible with the current definition of the class.
-
you might tend to write it once for every serializable class ( or have it generated by the IDE ) and forget about it. WRONG !!!
-
If you write it once and don’t take care to update it when necessary, you loose all the merits of serialVersionUID.