class BookingDaoESImp extends BaseDaoESImp implements BookingDao {

    @Override
    public boolean lockBooking()
    {
        try
        {
            IndexRequest indexRequest = new IndexRequest(this.bookingsIndex, ES_TYPE);
            indexRequest.id(LOCK_BOOKING_ID);
            indexRequest.create(true);
            indexRequest.source(new HashMap());
            esclient.index(indexRequest, WriteRequest.RefreshPolicy.WAIT_UNTIL.getValue());
        }
        catch (Exception e)
        {
            return false;
        }
        return true;
    }

    public  BookingDaoESImp();
    public  BookingDaoESImp(Properties properties);

}