001 /**
002 * Copyright (C) 2009-2013 Barchart, Inc. <http://www.barchart.com/>
003 *
004 * All rights reserved. Licensed under the OSI BSD License.
005 *
006 * http://www.opensource.org/licenses/bsd-license.php
007 */
008 package com.barchart.udt.anno;
009
010 import java.lang.annotation.Documented;
011 import java.lang.annotation.ElementType;
012 import java.lang.annotation.Retention;
013 import java.lang.annotation.RetentionPolicy;
014 import java.lang.annotation.Target;
015
016 /**
017 * annotation documents thread safe access contract
018 */
019 @Documented
020 @Target({ ElementType.FIELD, ElementType.METHOD, ElementType.CONSTRUCTOR })
021 @Retention(RetentionPolicy.RUNTIME)
022 public @interface ThreadSafe {
023
024 String value();
025
026 }